8#include <botan/exceptn.h>
17 std::ostringstream format;
18 format << message <<
" in " << func <<
":" << file;
26 std::ostringstream format;
27 format <<
"Invalid state: " << expr <<
" was false in " << func <<
":" << file;
32 const char* assertion_made,
37 std::ostringstream format;
39 format <<
"False assertion ";
41 if(assertion_made && assertion_made[0] != 0)
42 format <<
"'" << assertion_made <<
"' (expression " << expr_str <<
") ";
44 format << expr_str <<
" ";
47 format <<
"in " << func <<
" ";
49 format <<
"@" << file <<
":" << line;
void throw_invalid_argument(const char *message, const char *func, const char *file)
void assertion_failure(const char *expr_str, const char *assertion_made, const char *func, const char *file, int line)
void throw_invalid_state(const char *expr, const char *func, const char *file)