REC RPC library
Public Member Functions | Static Public Member Functions | List of all members
rec::rpc::Exception Class Reference

Exception class. More...

#include <rec_rpc_Exception.h>

Inheritance diagram for rec::rpc::Exception:
Inheritance graph
[legend]
Collaboration diagram for rec::rpc::Exception:
Collaboration graph
[legend]

Public Member Functions

 Exception (ErrorCode code=UnknownError, const QString &detail=QString::null)
 Constructor. More...
 
virtual ~Exception () throw ()
 Destructor. More...
 
ErrorCode errorCode () const
 
QString getMessage () const
 
QString detail () const
 
virtual const char * what () const throw ()
 

Static Public Member Functions

static QString messageFromErrorCode (ErrorCode code)
 Error message from error code. More...
 

Detailed Description

Exception class.

Definition at line 70 of file rec_rpc_Exception.h.

Constructor & Destructor Documentation

rec::rpc::Exception::Exception ( ErrorCode  code = UnknownError,
const QString &  detail = QString::null 
)

Constructor.

Parameters
codeError code.
detailDetailled human readable error message.
virtual rec::rpc::Exception::~Exception ( )
throw (
)
virtual

Destructor.

Member Function Documentation

QString rec::rpc::Exception::detail ( ) const
Returns
The detailled error message only (if any).
ErrorCode rec::rpc::Exception::errorCode ( ) const
Returns
Error code.
QString rec::rpc::Exception::getMessage ( ) const
Returns
Human readable error message.
static QString rec::rpc::Exception::messageFromErrorCode ( ErrorCode  code)
static

Error message from error code.

Parameters
codeError code.
Returns
Error message.
virtual const char* rec::rpc::Exception::what ( ) const
throw (
)
virtual

For std::exception compatibility.

Returns
Error message as C string.

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