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();
virtual const char * what() const
Extended exception class that bundles location, message and data.
Virtual parent class for the ecl exceptions.
const Data & data() const
The bundled data object.
Macros and exceptions for try-catch handling within the ecl.
DataException(const char *loc, ErrorFlag error, Data &d)
const ErrorFlag & flag() const
Flag enumerating the type of exception thrown.
const char * what() const