|
Gyoto
|
Error handling. More...
#include <string>Go to the source code of this file.
Classes | |
| class | Gyoto::Error |
| Class for thowing exceptions. More... | |
Namespaces | |
| namespace | Gyoto |
| Namespace for the Gyoto library. | |
Typedefs | |
| typedef void | GyotoErrorHandler_t (const char *) |
Functions | |
| void | Gyoto::setErrorHandler (GyotoErrorHandler_t *) |
| void | Gyoto::throwError (std::string) |
Error handling.
Every Gyoto method should check for possible error conditions and throw adequate Gyoto::Error exceptions. For instance:
The main code can then catch these exceptions and act appropriately, for instance:
1.8.1.1