2015-09-06 20:33:27 +02:00
|
|
|
#include "./cryptoexception.h"
|
2015-04-22 19:06:29 +02:00
|
|
|
|
|
|
|
namespace Io {
|
|
|
|
/*!
|
|
|
|
* \class CryptoException
|
|
|
|
* \brief The exception that is thrown when an encryption/decryption error occurs.
|
2018-12-22 02:47:33 +01:00
|
|
|
* \remarks Must not have any inline methods/c'tors/d'tors (so the vtable is invoked in any compile unit).
|
2021-07-03 19:40:32 +02:00
|
|
|
* Otherwise it is not possible to throw/catch it across library boundaries under Android.
|
2015-04-22 19:06:29 +02:00
|
|
|
*/
|
2018-12-22 02:47:33 +01:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Constructs a crypto exception.
|
|
|
|
*/
|
|
|
|
CryptoException::CryptoException(const std::string &message) noexcept
|
|
|
|
: runtime_error(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Constructs a crypto exception.
|
|
|
|
*/
|
|
|
|
CryptoException::CryptoException(const char *message) noexcept
|
|
|
|
: runtime_error(message)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief Destroys the crypto exception.
|
|
|
|
*/
|
|
|
|
CryptoException::~CryptoException()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-03-20 20:11:31 +01:00
|
|
|
} // namespace Io
|