passwordfile/io/cryptoexception.cpp

35 lines
779 B
C++
Raw Normal View History

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.
* \remarks Must not have any inline methods/c'tors/d'tors (so the vtable is invoked in any compile unit).
* Otherwise it is not possible to throw/catch it across library boundaries under Android.
2015-04-22 19:06:29 +02: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