15 #ifndef ECL_EXCEPTIONS_DATA_EXCEPTION_HPP_ 16 #define ECL_EXCEPTIONS_DATA_EXCEPTION_HPP_ 22 #include <ecl/config/ecl.hpp> 23 #ifndef ECL_DISABLE_EXCEPTIONS 57 template <
typename Data>
67 const char*
what()
const throw();
87 template <
typename Data>
100 template <
typename Data>
113 template <
typename Data>
127 template <
typename Data>
130 std::string what_msg;
132 std::ostringstream stream;
133 stream <<
"\n" <<
"Location : " << this->
location <<
"\n";
136 stream <<
"Detail : " <<
message <<
"\n";
139 what_msg = stream.str();
140 return what_msg.c_str();
const ErrorFlag & flag() const
Flag enumerating the type of exception thrown.
Extended exception class that bundles location, message and data.
Virtual parent class for the ecl exceptions.
Macros and exceptions for try-catch handling within the ecl.
const Data & data() const
The bundled data object.
DataException(const char *loc, ErrorFlag error, Data &d)
const char * what() const
virtual const char * what() const