Use noexcept directly, C++ 14 is required anyways

This commit is contained in:
Martchus 2018-03-20 20:10:47 +01:00
parent 2e65843687
commit fbd43b86e9
4 changed files with 10 additions and 8 deletions

View File

@ -9,14 +9,15 @@ namespace Io {
/*! /*!
* \brief Constructs a crypto exception. * \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. * \brief Destroys the exception.
*/ */
CryptoException::~CryptoException() USE_NOTHROW CryptoException::~CryptoException() noexcept
{ {
} }
} }

View File

@ -10,8 +10,8 @@ namespace Io {
class PASSWORD_FILE_EXPORT CryptoException : public std::runtime_error { class PASSWORD_FILE_EXPORT CryptoException : public std::runtime_error {
public: public:
CryptoException(const std::string &openSslErrorQueue) USE_NOTHROW; CryptoException(const std::string &openSslErrorQueue) noexcept;
virtual ~CryptoException() USE_NOTHROW; ~CryptoException() noexcept;
}; };
} }

View File

@ -10,14 +10,15 @@ namespace Io {
/*! /*!
* \brief Constructs a parsing exception. * \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. * \brief Destroys the exception.
*/ */
ParsingException::~ParsingException() USE_NOTHROW ParsingException::~ParsingException() noexcept
{ {
} }
} }

View File

@ -10,8 +10,8 @@ namespace Io {
class PASSWORD_FILE_EXPORT ParsingException : public std::runtime_error { class PASSWORD_FILE_EXPORT ParsingException : public std::runtime_error {
public: public:
ParsingException(const std::string &message = std::string()) USE_NOTHROW; ParsingException(const std::string &message = std::string()) noexcept;
virtual ~ParsingException() USE_NOTHROW; ~ParsingException() noexcept;
}; };
} }