VCF::BasicException Class Reference
The base exception class in the Framework. More...
#include <vcf/FoundationKit/BasicException.h>
Inheritance diagram for VCF::BasicException:

Public Member Functions | |
| BasicException (const VCF::String &message) | |
| Basic constructor All Exceptions take a text message identifying (in human readable terms ) what went wrong. | |
| BasicException (const VCF::String &message, const int lineNumber) | |
| virtual | ~BasicException () throw () |
| VCF::String | getMessage () const |
| returns the message text associated with the exception | |
| virtual const char * | what () const throw () |
| overrides the std::exception's what() method to return the same as getMessage() does, making this exception (and all it's derivations) suitable for use in try/catch blocks where the catch traps std::exception&. | |
| void | setMessage (const VCF::String &message) |
| set the error text to be associated with the exception so it is possible to add informations and rethrow the same exception | |
Detailed Description
The base exception class in the Framework.All exceptions should try and describe what went wrong as clearly as possible. For convenience a basic set of error strings are defined in ErrorStrings.h.
- Version:
- 1.0
- Author:
- Jim Crafton
Constructor & Destructor Documentation
|
|
Basic constructor All Exceptions take a text message identifying (in human readable terms ) what went wrong.
|
|
||||||||||||
|
|
|
|
|
Member Function Documentation
|
|
returns the message text associated with the exception
|
|
|
set the error text to be associated with the exception so it is possible to add informations and rethrow the same exception
|
|
|
overrides the std::exception's what() method to return the same as getMessage() does, making this exception (and all it's derivations) suitable for use in try/catch blocks where the catch traps std::exception&.
|
The documentation for this class was generated from the following file:
- vcf/FoundationKit/BasicException.h
