8 #ifndef BOTAN_EXCEPTION_H_
9 #define BOTAN_EXCEPTION_H_
11 #include <botan/types.h>
96 const char*
what() const noexcept
override {
return m_msg.c_str(); }
117 explicit Exception(
const std::string& msg);
122 Exception(
const char* prefix,
const std::string& msg);
127 Exception(
const std::string& msg,
const std::exception& e);
141 explicit Invalid_Argument(
const std::string& msg,
const std::string& where);
204 Decoding_Error(
const std::string& name,
const char* exception_message);
253 const std::string& algo,
254 const std::string& provider);
332 int error_code() const noexcept
override {
return m_error_code; }
393 BOTAN_DEPRECATED(
"no longer used")
explicit Self_Test_Failure(
const std::string& err);
415 BOTAN_DEPRECATED(
"no longer used")
explicit Policy_Violation(
const std::string& err);
433 template<
typename E,
typename... Args>
434 inline void do_throw_error(
const char* file,
int line,
const char* func, Args... args)
436 throw E(file, line, func, args...);
ErrorType error_type() const noexceptoverride
ErrorType error_type() const noexceptoverride
Invalid_State(const std::string &err)
ErrorType error_type() const noexceptoverride
ErrorType error_type() const noexceptoverride
int error_code() const noexceptoverride
ErrorType error_type() const noexceptoverride
virtual ErrorType error_type() const noexcept
int(* final)(unsigned char *, CTX *)
#define BOTAN_PUBLIC_API(maj, min)
std::vector< uint8_t > m_msg
ErrorType error_type() const noexceptoverride
ErrorType error_type() const noexceptoverride
virtual int error_code() const noexcept
ErrorType error_type() const noexceptoverride
std::string to_string(ErrorType type)
Convert an ErrorType to string.
ErrorType error_type() const noexceptoverride
ErrorType error_type() const noexceptoverride
void do_throw_error(const char *file, int line, const char *func, Args...args)
System_Error(const std::string &msg)
ErrorType error_type() const noexceptoverride
Invalid_Authentication_Tag Integrity_Failure
const char * what() const noexceptoverride
ErrorType error_type() const noexceptoverride
ErrorType error_type() const noexceptoverride
Lookup_Error(const std::string &err)