Public Member Functions | Protected Attributes

Utils::Exception Class Reference

Generic application exception. More...

#include <B2BITS_Exception.h>

Inheritance diagram for Utils::Exception:
Collaboration diagram for Utils::Exception:

List of all members.

Public Member Functions

 Exception ()
 Constructor.
 Exception (const std::string &aReason)
 Constructor.
std::string const & reason () const throw ()
 Returns the reason for this exception.
virtual const char * what () const throw ()
 Returns the reason for this exception.
virtual ~Exception () throw ()
 Destructor.

Protected Attributes

std::string m_reason
 string that describes raised exception

Detailed Description

Generic application exception.

Definition at line 62 of file B2BITS_Exception.h.


Constructor & Destructor Documentation

Utils::Exception::Exception (  ) [inline]

Constructor.

Definition at line 65 of file B2BITS_Exception.h.

Utils::Exception::Exception ( const std::string &  aReason ) [inline]

Constructor.

Definition at line 68 of file B2BITS_Exception.h.

References m_reason.

virtual Utils::Exception::~Exception (  ) throw () [inline, virtual]

Destructor.

Definition at line 83 of file B2BITS_Exception.h.


Member Function Documentation

std::string const& Utils::Exception::reason (  ) const throw () [inline]

Returns the reason for this exception.

Definition at line 98 of file B2BITS_Exception.h.

References m_reason.

virtual const char* Utils::Exception::what (  ) const throw () [inline, virtual]

Returns the reason for this exception.

Definition at line 90 of file B2BITS_Exception.h.

References m_reason.


Member Data Documentation

std::string Utils::Exception::m_reason [protected]

string that describes raised exception

Definition at line 105 of file B2BITS_Exception.h.

Referenced by Exception(), reason(), and what().