MMSError Class Reference

Base class for exception handling in disko. More...

#include <mmserror.h>

List of all members.


Public Member Functions

 MMSError (int code, string message)
 Constructor.
 ~MMSError ()
 Destructor.
string getMessage ()
 Retrieve the error message saved in message.
int getCode ()
 Retrieve the error code saved in code.

Private Attributes

string message
 Explanation of the error that caused this exception object to be thrown.
int code
 Error code (currently not used).

Detailed Description

Base class for exception handling in disko.

Derive your exception class from this one to extend exception handling.

Definition at line 54 of file mmserror.h.


Constructor & Destructor Documentation

MMSError::MMSError ( int  code,
string  message 
) [inline]

Constructor.

Parameters:
code error code (currently not used)
message error message which describes the exception more detailed

Definition at line 62 of file mmserror.h.

MMSError::~MMSError (  )  [inline]

Destructor.

Definition at line 67 of file mmserror.h.


Member Function Documentation

string MMSError::getMessage (  ) 

Retrieve the error message saved in message.

Returns:
String containing the error messages of this exception object.

Definition at line 47 of file mmserror.cpp.

int MMSError::getCode (  ) 

Retrieve the error code saved in code.

Returns:
Error code of this exception object.

Definition at line 43 of file mmserror.cpp.


Member Data Documentation

string MMSError::message [private]

Explanation of the error that caused this exception object to be thrown.

Definition at line 84 of file mmserror.h.

int MMSError::code [private]

Error code (currently not used).

Definition at line 85 of file mmserror.h.


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