diff --git a/io/cryptoexception.cpp b/io/cryptoexception.cpp index 3024865..92747a5 100644 --- a/io/cryptoexception.cpp +++ b/io/cryptoexception.cpp @@ -9,14 +9,15 @@ namespace Io { /*! * \brief Constructs a crypto exception. */ -CryptoException::CryptoException(const std::string &openSslErrorQueue) USE_NOTHROW : runtime_error(openSslErrorQueue) +CryptoException::CryptoException(const std::string &openSslErrorQueue) noexcept + : runtime_error(openSslErrorQueue) { } /*! * \brief Destroys the exception. */ -CryptoException::~CryptoException() USE_NOTHROW +CryptoException::~CryptoException() noexcept { } } diff --git a/io/cryptoexception.h b/io/cryptoexception.h index f0843bb..d2f92c5 100644 --- a/io/cryptoexception.h +++ b/io/cryptoexception.h @@ -10,8 +10,8 @@ namespace Io { class PASSWORD_FILE_EXPORT CryptoException : public std::runtime_error { public: - CryptoException(const std::string &openSslErrorQueue) USE_NOTHROW; - virtual ~CryptoException() USE_NOTHROW; + CryptoException(const std::string &openSslErrorQueue) noexcept; + ~CryptoException() noexcept; }; } diff --git a/io/parsingexception.cpp b/io/parsingexception.cpp index 0bee9b1..41e989e 100644 --- a/io/parsingexception.cpp +++ b/io/parsingexception.cpp @@ -10,14 +10,15 @@ namespace Io { /*! * \brief Constructs a parsing exception. */ -ParsingException::ParsingException(const std::string &message) USE_NOTHROW : runtime_error(message) +ParsingException::ParsingException(const std::string &message) noexcept + : runtime_error(message) { } /*! * \brief Destroys the exception. */ -ParsingException::~ParsingException() USE_NOTHROW +ParsingException::~ParsingException() noexcept { } } diff --git a/io/parsingexception.h b/io/parsingexception.h index e4c39ce..eecf897 100644 --- a/io/parsingexception.h +++ b/io/parsingexception.h @@ -10,8 +10,8 @@ namespace Io { class PASSWORD_FILE_EXPORT ParsingException : public std::runtime_error { public: - ParsingException(const std::string &message = std::string()) USE_NOTHROW; - virtual ~ParsingException() USE_NOTHROW; + ParsingException(const std::string &message = std::string()) noexcept; + ~ParsingException() noexcept; }; }