reSIProcate/rutil  9694
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
resip::BaseException Class Reference

The abstract base-class for all exceptions thrown by resip code. More...

#include <BaseException.hxx>

Inheritance diagram for resip::BaseException:
Inheritance graph
[legend]
Collaboration diagram for resip::BaseException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual const char * name () const =0
const DatagetMessage () 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)

Detailed Description

The abstract base-class for all exceptions thrown by resip code.

Definition at line 19 of file BaseException.hxx.


Constructor & Destructor Documentation

BaseException::BaseException ( const Data msg,
const Data file,
int  line 
) [protected]

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.

{}

Member Function Documentation

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]
virtual const char* resip::BaseException::what ( ) const throw () [inline, virtual]

Definition at line 25 of file BaseException.hxx.

References resip::Data::data(), and message.

{return message.data();}

Here is the call graph for this function:


Friends And Related Function Documentation

EncodeStream& operator<< ( EncodeStream &  strm,
const BaseException e 
) [friend]
std::ostream& operator<< ( std::ostream &  strm,
const BaseException e 
) [friend]

Member Data Documentation

Definition at line 35 of file BaseException.hxx.

Definition at line 36 of file BaseException.hxx.


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