diff options
-rw-r--r-- | src/cert/x509/x509path.cpp | 2 | ||||
-rw-r--r-- | src/tls/tls_exceptn.h | 2 | ||||
-rw-r--r-- | src/utils/exceptn.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cert/x509/x509path.cpp b/src/cert/x509/x509path.cpp index 9b2b3227f..66ba142d0 100644 --- a/src/cert/x509/x509path.cpp +++ b/src/cert/x509/x509path.cpp @@ -24,7 +24,7 @@ class PKIX_Validation_Failure : public std::exception Path_Validation_Result::Code code() const { return m_code; } - const char* what() { return "PKIX validation failed"; } + const char* what() const noexcept { return "PKIX validation failed"; } private: Path_Validation_Result::Code m_code; }; diff --git a/src/tls/tls_exceptn.h b/src/tls/tls_exceptn.h index ad19c6c9d..529d1f315 100644 --- a/src/tls/tls_exceptn.h +++ b/src/tls/tls_exceptn.h @@ -21,7 +21,7 @@ namespace TLS { class BOTAN_DLL TLS_Exception : public Exception { public: - Alert::Type type() const throw() { return alert_type; } + Alert::Type type() const noexcept { return alert_type; } TLS_Exception(Alert::Type type, const std::string& err_msg = "Unknown error") : diff --git a/src/utils/exceptn.h b/src/utils/exceptn.h index 02fb16a66..f611c9976 100644 --- a/src/utils/exceptn.h +++ b/src/utils/exceptn.h @@ -184,7 +184,7 @@ struct BOTAN_DLL Self_Test_Failure : public Internal_Error */ struct BOTAN_DLL Memory_Exhaustion : public std::bad_alloc { - const char* what() const throw() + const char* what() const noexcept { return "Ran out of memory, allocation failed"; } }; |