Public Member Functions | Protected Attributes

Engine::Error Class Reference

Represents error event. More...

#include <B2BITS_Event.h>

Inheritance diagram for Engine::Error:
Collaboration diagram for Engine::Error:

List of all members.

Public Member Functions

 Error (const std::string &msg)
 Constructor.
virtual Type getType () const
 Returns the event type.
virtual const std::string * what () const
 Describes the event.
virtual ~Error ()
 Destructor.

Protected Attributes

std::string m_reason
 Contains string that describes the event.

Detailed Description

Represents error event.

See also:
NotificationsMgr

Definition at line 155 of file B2BITS_Event.h.


Constructor & Destructor Documentation

Engine::Error::Error ( const std::string &  msg )

Constructor.

Parameters:
msgString that describes the event.
virtual Engine::Error::~Error (  ) [inline, virtual]

Destructor.

Definition at line 164 of file B2BITS_Event.h.


Member Function Documentation

virtual Type Engine::Error::getType (  ) const [inline, virtual]

Returns the event type.

Can be used instead of C++ RTTI.

Implements Engine::Event.

Reimplemented in Engine::SessionError, and Engine::ParseErrorInSession.

Definition at line 168 of file B2BITS_Event.h.

References Engine::Event::ERROR_EVENT.

virtual const std::string* Engine::Error::what (  ) const [virtual]

Describes the event.

Implements Engine::Event.

Reimplemented in Engine::SessionError.


Member Data Documentation

std::string Engine::Error::m_reason [protected]

Contains string that describes the event.

Definition at line 172 of file B2BITS_Event.h.