dlvhex  2.5.0
GeneralError Class Reference

General exception class. More...

#include <include/dlvhex2/Error.h>

Inheritance diagram for GeneralError:
Collaboration diagram for GeneralError:

Public Member Functions

 GeneralError (const std::string &msg)
 initialize exception with error string.
virtual ~GeneralError () throw ()
virtual std::string getErrorMsg () const
 Returns error string.

Detailed Description

General exception class.

Definition at line 51 of file Error.h.


Constructor & Destructor Documentation

DLVHEX_NAMESPACE_BEGIN GeneralError::GeneralError ( const std::string &  msg) [explicit]

initialize exception with error string.

Returns:
msg Error message.

Definition at line 47 of file Error.cpp.

virtual GeneralError::~GeneralError ( ) throw () [inline, virtual]

Definition at line 62 of file Error.h.


Member Function Documentation

virtual std::string GeneralError::getErrorMsg ( ) const [inline, virtual]

Returns error string.

In derived classes, this function returns an error message extended with context information of the error. what() just returns the message itself. In this base class, getErrorMsg() is equal to what().

Returns:
Error message.

Reimplemented in PluginError, and SyntaxError.

Definition at line 73 of file Error.h.

Referenced by main().


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