|
Maps SDK for C++ 1.0.0
|
Api error handler. More...
Static Public Member Functions | |
| template<typename TErrorConvertible> | |
| static TError | setError (TErrorConvertible err, bool throwErr) |
| Sets the Api error to given value. | |
| static TError | getError () |
| Gets the last Api error. | |
| static bool | isExceptionEnabled () |
| Checks if exception mechanism is enabled. | |
| static void | blockExc () |
| Blocks the exceptions mechanism. | |
| static void | unblockExc () |
| Unblocks the exceptions mechanism. | |
| static std::error_code | getStdError () |
Friends | |
| class | ExceptionEnabler |
Api error handler.
|
inlinestatic |
Gets the last Api error.
|
inlinestatic |
|
inlinestatic |
Checks if exception mechanism is enabled.
|
inlinestatic |
Sets the Api error to given value.
If exception mechanism is enabled will throw a corresponding exception
| err | The error value |
| throwErr | If true, will throw an exception |