DATRW++ library: seismic data I/O with multiple formats

◆ Exception() [5/5]

datrw::Exception::Exception ( const std::string &  message,
const std::string &  file,
const int &  line 
)

Create with message and code position.

construct with message and file info

Definition at line 69 of file exception.cc.

References Mreport_on_construct, and report().

71  :
72  Mmessage(message), Mfile(file), Mline(line), Mcondition("")
73  { if (Mreport_on_construct) { report(); } }
static bool Mreport_on_construct
Shall we print to cerr at construction time?
Definition: exception.h:99
const int & Mline
pointer to line number in source file
Definition: exception.h:105
std::string Mmessage
pointer to message string
Definition: exception.h:101
std::string Mfile
pointer to file name string
Definition: exception.h:103
std::string Mcondition
pointer to assertion condition text string
Definition: exception.h:107
virtual void report() const
Screen report.
Definition: exception.cc:96
Here is the call graph for this function: