8 #ifndef BOTAN_EXCEPTION_H__ 9 #define BOTAN_EXCEPTION_H__ 11 #include <botan/types.h> 12 #include <botan/parsing.h> 69 const std::string& pad) :
71 " cannot be used with " + mode)
82 " is invalid for " + mode)
112 Lookup_Error(
"Could not find any algorithm named \"" + name +
"\"")
150 Exception(
"Integrity failure: " + msg) {}
187 const char*
what()
const throw()
188 {
return "Ran out of memory, allocation failed"; }
Invalid_IV_Length(const std::string &mode, size_t bad_len)
Invalid_Block_Size(const std::string &mode, const std::string &pad)
Invalid_Key_Length(const std::string &name, size_t length)
Algorithm_Not_Found(const std::string &name)
PRNG_Unseeded(const std::string &algo)
Stream_IO_Error(const std::string &err)
std::invalid_argument Invalid_Argument
Internal_Error(const std::string &err)
Integrity_Failure(const std::string &msg)
Decoding_Error(const std::string &name)
Invalid_Algorithm_Name(const std::string &name)
Self_Test_Failure(const std::string &err)
std::runtime_error Exception
Invalid_State(const std::string &err)
std::string to_string(u64bit n, size_t min_len)
Lookup_Error(const std::string &err)
const char * what() const
Policy_Violation(const std::string &err)
Encoding_Error(const std::string &name)
Invalid_OID(const std::string &oid)