18 #ifndef CARMA_EXCEPTION_H_
19 #define CARMA_EXCEPTION_H_
25 #define Carma_Error(s) CarmaException(s, __FILE__, __LINE__)
53 : a_reason(reason), a_file(file), a_line(line) {}
72 std::stringstream buf;
73 buf << a_reason <<
" in " << a_file <<
"@" << a_line << std::endl;
Carma exception throw by libcarma.
~CarmaException()
Destructor.
std::string show_reason() const
Format into a const char *.
CarmaException(std::string reason, std::string file, unsigned int line)
Constructor.