14 : code(_code), message(_msg) {}
27 if (&p ==
this)
return *
this;
32 strncpy(file, p.
filePTR, BUFFER_SIZE);
44 : functionPTR(_function), line(_line), filePTR(_file), pointersSet(true) {
50 <<
"]: " << error.
message << std::endl;
52 #ifdef DYNAMICGRAPH_EXCEPTION_PASSING_PARAM 54 os <<
"Thrown from " << error.p.file <<
": " << error.p.function <<
" (#" 55 << error.p.line <<
")" << std::endl;
56 #endif // DYNAMICGRAPH_EXCEPTION_PASSING_PARAM const std::string & getStringMessage() const
Reference access to the error message (can be empty).
std::string message
Error message (can be empty).
Param & initCopy(const Param &p)
#define dgDEBUGOUT(level)
#define dgDEBUGINOUT(level)
const char * getMessage() const
Access to the pointer on the array of char related to the error string.
int getCode() const
Access to the error code.
virtual const std::string & getExceptionName() const
Abstract root class for all dynamic-graph exceptions.
Class owned by exceptions to store error locations.
static const std::string EXCEPTION_NAME
ExceptionAbstract()
Forbid the empty constructor (private).
DYNAMIC_GRAPH_DLLAPI friend std::ostream & operator<<(std::ostream &os, const ExceptionAbstract &err)
Print the error structure.
#define dgDEBUGIN(level)
VP_DEBUG.