#ifndef PASSWORD_FILE_IO_CRYPTOFAILUREEXCEPTION_H #define PASSWORD_FILE_IO_CRYPTOFAILUREEXCEPTION_H #include "../global.h" #include #include namespace Io { class PASSWORD_FILE_EXPORT CryptoException : public std::runtime_error { public: explicit CryptoException(const std::string &message) noexcept; explicit CryptoException(const char *message) noexcept; }; /*! * \brief Constructs a crypto exception. */ inline CryptoException::CryptoException(const std::string &message) noexcept : runtime_error(message) { } /*! * \brief Constructs a crypto exception. */ inline CryptoException::CryptoException(const char *message) noexcept : runtime_error(message) { } } // namespace Io #endif // PASSWORD_FILE_IO_CRYPTOFAILUREEXCEPTION_H