SERIAL++ library: simple serial port access

◆ base_report()

void serialport::Exception::base_report ( ) const
protected

Screen report.

report

Definition at line 103 of file error.cc.

References Mcondition, Mfile, Mline, and Mmessage.

Referenced by report().

104  {
105  cerr << "Exception report:" << endl;
106  if (Mmessage==0)
107  {
108  cerr << " No message" << endl;
109  }
110  else
111  {
112  cerr << " message: " << Mmessage << endl;
113  }
114  if (Mfile!=0)
115  {
116  cerr << " triggered in \"" << Mfile << "\" at line #" << Mline << endl;
117  }
118  if (Mcondition!=0)
119  {
120  cerr << " by condition:" << endl
121  << " \"" << Mcondition << "\"" << endl;
122  }
123  }
const char * Mmessage
pointer to message string
Definition: error.h:99
const char * Mcondition
pointer to assertion condition text string
Definition: error.h:105
const int & Mline
pointer to line number in source file
Definition: error.h:103
const char * Mfile
pointer to file name string
Definition: error.h:101
Here is the caller graph for this function: