|
reSIProcate/rutil
9694
|
The abstract base-class for all exceptions thrown by resip code. More...
#include <BaseException.hxx>


Public Member Functions | |
| virtual const char * | name () const =0 |
| const Data & | getMessage () const |
| virtual const char * | what () const throw () |
Protected Member Functions | |
| BaseException (const Data &msg, const Data &file, int line) | |
| virtual | ~BaseException () throw () |
Protected Attributes | |
| resip::Data | message |
| resip::Data | fileName |
| int | lineNumber |
Friends | |
| EncodeStream & | operator<< (EncodeStream &strm, const BaseException &e) |
| std::ostream & | operator<< (std::ostream &strm, const BaseException &e) |
The abstract base-class for all exceptions thrown by resip code.
Definition at line 19 of file BaseException.hxx.
Definition at line 13 of file BaseException.cxx.
References DebugLog, and message.
:
message( msg ),
fileName( file ),
lineNumber( line )
{
#if !defined(RESIP_NO_EXCEPTION_DEBUG_LOGS)
DebugLog(<< "BaseException at " << file << ":" << line << " " << message);
#endif
}
| BaseException::~BaseException | ( | ) | throw () [protected, virtual] |
Definition at line 25 of file BaseException.cxx.
{}
| const Data& resip::BaseException::getMessage | ( | ) | const [inline] |
Reimplemented in resip::DataException.
Definition at line 24 of file BaseException.hxx.
References message.
Referenced by resip::DnsStub::Query::followCname(), resip::DnsStub::Query::process(), and resip::RRList::update().
{return message;}
| virtual const char* resip::BaseException::name | ( | ) | const [pure virtual] |
Implemented in resip::DnsStub::DnsStubException, resip::DnsUtil::Exception, resip::RROverlay::OverlayException, resip::DnsNaptrRecord::NaptrException, resip::DnsSrvRecord::SrvException, resip::DnsCnameRecord::CnameException, resip::ParseException, resip::ConfigParse::Exception, and resip::DataException.
| virtual const char* resip::BaseException::what | ( | ) | const throw () [inline, virtual] |
Definition at line 25 of file BaseException.hxx.
References resip::Data::data(), and message.

| EncodeStream& operator<< | ( | EncodeStream & | strm, |
| const BaseException & | e | ||
| ) | [friend] |
| std::ostream& operator<< | ( | std::ostream & | strm, |
| const BaseException & | e | ||
| ) | [friend] |
resip::Data resip::BaseException::fileName [protected] |
Definition at line 35 of file BaseException.hxx.
int resip::BaseException::lineNumber [protected] |
Definition at line 36 of file BaseException.hxx.
resip::Data resip::BaseException::message [protected] |
Definition at line 34 of file BaseException.hxx.
Referenced by BaseException(), resip::DataException::getMessage(), getMessage(), and what().
1.7.5.1