My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Exception Class Reference
Inheritance diagram for gcp::util::Exception:
gcp::antenna::control::AntennaException

Public Member Functions

 Exception (std::string str, const char *filename, const int lineNumber, bool report)
 
 Exception (std::ostringstream &os, const char *filename, const int lineNumber, bool report)
 
 Exception (gcp::util::LogStream &ls, const char *filename, const int lineNumber, bool report)
 
 Exception (gcp::util::LogStream *ls, const char *filename, const int lineNumber, bool report)
 
virtual ~Exception ()
 
void report ()
 
void report (std::string &what)
 
void report (std::string what)
 
const char * what ()
 

Constructor & Destructor Documentation

gcp::util::Exception::Exception ( std::string  str,
const char *  filename,
const int  lineNumber,
bool  report 
)

Construct an Exception with a detailed message.

Parameters
strString describing error.
filenamewhere exception originated.
lineNumberexception occurred on.
Exception::Exception ( std::ostringstream &  os,
const char *  fileName,
const int  lineNumber,
bool  doReport 
)

Construct an Error with a detailed message.

Parameters
osostringstream containing message
filenamewhere exception originated.
lineNumberexception occurred on.

....................................................................... Constructs an Error with a detailed message.

Parameters
osostringstream containing message
filenamewhere exception originated.
lineNumberexception occurred on.
Exception::Exception ( gcp::util::LogStream ls,
const char *  fileName,
const int  lineNumber,
bool  doReport 
)

Constructor with an LogStream&.

....................................................................... Constructs an Error with a detailed message.

Parameters
lsLogStream containing message
fileNamewhere exception originated.
lineNumberwhere exception occurred.
Exception::Exception ( gcp::util::LogStream ls,
const char *  fileName,
const int  lineNumber,
bool  doReport 
)

Constructor with an LogStream*.

Constructor with a log stream.

Exception::~Exception ( )
virtual

Destructor

....................................................................... Destructor

Member Function Documentation

void gcp::util::Exception::report ( )
inline

Report error to standard err. Reports error to standard error by printing the error message, filename and line number.

void gcp::util::Exception::report ( std::string &  what)
inline

Report error to standard err. Reports error to standard error by printing the error message, filename and line number.

void gcp::util::Exception::report ( std::string  what)
inline

Report error to standard err. Reports error to standard error by printing the error message, filename and line number.


The documentation for this class was generated from the following files: