The exception class.
More...
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.
- Parameters
-
s | The action that failed. |
r | The GTA result. |
Get the original GTA result.
- Returns
- The original GTA result.
int gta::exception::sys_errno |
( |
| ) |
const |
|
inline |
Get the original errno.
- Returns
- 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 () |
|
inlinevirtual |
Get a description.
- Returns
- A description of the exception.
The documentation for this class was generated from the following file: