libgta
1.0.4
Read and Write Generic Tagged Array (GTA) files
|
The exception class. More...
Inherits std::exception.
Public Member Functions | |
exception (const char *s, gta::result r) | |
Constructor. | |
gta::result | result () const |
Get the original GTA result. | |
int | sys_errno () const |
Get the original errno. | |
virtual const char * | what () const throw () |
Get a description. |
The exception class.
The GTA C++ interface reports errors by throwing exceptions. You can use them just like std::exceptions, but you can also query the original gta::result that caused the exception.
gta::exception::exception | ( | const char * | s, |
gta::result | r | ||
) | [inline] |
Constructor.
s | The action that failed. |
r | The GTA result. |
gta::result gta::exception::result | ( | ) | const [inline] |
Get the original GTA result.
int gta::exception::sys_errno | ( | ) | const [inline] |
Get the original errno.
The original errno value is relevant if the original GTA result was gta::system_error.
virtual const char* gta::exception::what | ( | ) | const throw () [inline, virtual] |
Get a description.