diff options
Diffstat (limited to 'src/lib/utils/exceptn.h')
-rw-r--r-- | src/lib/utils/exceptn.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/utils/exceptn.h b/src/lib/utils/exceptn.h index 0de17f6f3..61e7c7c1f 100644 --- a/src/lib/utils/exceptn.h +++ b/src/lib/utils/exceptn.h @@ -109,9 +109,19 @@ class BOTAN_PUBLIC_API(2,0) Exception : public std::exception */ virtual int error_code() const noexcept { return 0; } - protected: + /** + * Avoid throwing base Exception, use a subclass + */ explicit Exception(const std::string& msg); + + /** + * Avoid throwing base Exception, use a subclass + */ Exception(const char* prefix, const std::string& msg); + + /** + * Avoid throwing base Exception, use a subclass + */ Exception(const std::string& msg, const std::exception& e); private: |