#include <Exception.h>
Inheritance diagram for Exception:

Public Member Functions | |
| Exception (const char *info) | |
| Exception (std::string info) | |
| std::string | what () const |
| Returns a string consisting of the details specified when the Exception was created. | |
Protected Member Functions | |
| void * | operator new (uint size) |
Protected Attributes | |
| std::string | details |
You should place calls to functions that can throw exceptions in a try {} block, and catch(Exception &e). Use cout<<e.what() to print out the details onto the screen.
In version 1.0 of annie, this is the only class thrown by any function. Further refinements will be made as and when required.
|
|
|
|
|
|
|
|
|
|
|
Returns a string consisting of the details specified when the Exception was created.
|
|
|
|
1.3.5