13 #include "../../include/ecl/errors/compile_time_assert.hpp" 14 #include "../../include/ecl/errors/handlers.hpp" 15 #include "../../include/ecl/errors/run_time_functions.hpp" 16 #include "../../include/ecl/errors/macros.hpp" 25 template <
int M,
int N>
42 std::cout << std::endl;
43 std::cout <<
"***********************************************************" << std::endl;
44 std::cout <<
" Error functions" << std::endl;
45 std::cout <<
"***********************************************************" << std::endl;
46 std::cout << std::endl;
48 std::cout <<
"Constructing an error of type 'Unknown Error'" << std::endl;
49 std::cout << std::endl;
51 std::cout <<
"Error::what() " << std::endl;
52 std::cout << error.
what() << std::endl;
53 std::cout <<
"Error::print(LOC) " << std::endl;
56 std::cout << std::endl;
57 std::cout <<
"***********************************************************" << std::endl;
58 std::cout <<
" Asserts and Aborts" << std::endl;
59 std::cout <<
"***********************************************************" << std::endl;
60 std::cout << std::endl;
virtual ErrorFlag flag() const
The flag identifying the error identified with this error handler.
virtual const char * what() const
A simple string verbosely representing the error that is handled.
#define ecl_compile_time_assert(logical_expression)
#define LOC
Stringify the line of code you are at.
virtual void print(const char *loc)
Print a location dependent message to standard out.
ecl_errors_PUBLIC void ecl_run_time_assert(bool requirement, const char *location, const char *msg)
Condition test, aborts with a programmable error string if it fails.
The primary error handler for ecl libraries.