#include <Exception.h>
Base class for every exception generated by Vaca objects.
Public Member Functions | |
Exception () | |
Creates generic exception with an empty error message. | |
Exception (const String &message) | |
Creates an exception with the specified error message. | |
virtual | ~Exception () throw () |
Destroys the exception. | |
virtual const char * | what () const throw () |
Returns a printable C-string of the error. | |
virtual const String & | getMessage () const throw () |
Returns the error message specified in the creation of the exception. | |
void | show () |
Shows the error in a MsgBox. | |
Private Attributes | |
String | m_message |
DWORD | m_errorCode |
LPSTR | m_msgbuf |
Vaca::Exception::Exception | ( | ) | [inline] |
Creates generic exception with an empty error message.
Vaca::Exception::Exception | ( | const String & | message | ) | [inline] |
Creates an exception with the specified error message.
message | Error message. |
virtual Vaca::Exception::~Exception | ( | ) | throw () [inline, virtual] |
Destroys the exception.
virtual const char* Vaca::Exception::what | ( | ) | const throw () [inline, virtual] |
Returns a printable C-string of the error.
If the Exception(const String&) constructor was used to create the exception, this method returns the same string as getMessage but in ASCII format.
virtual const String& Vaca::Exception::getMessage | ( | ) | const throw () [inline, virtual] |
Returns the error message specified in the creation of the exception.
void Vaca::Exception::show | ( | ) | [inline] |
String Vaca::Exception::m_message [private] |
DWORD Vaca::Exception::m_errorCode [private] |
LPSTR Vaca::Exception::m_msgbuf [private] |