OS Dependent Error Handling. More...
#include "cel_types.h"#include "cel_string.h"#include "cel_error.h"#include "cel_exception.h"
Classes | |
| class | Celartem::ErrorSaver |
| struct | Celartem::Error |
Namespaces | |
| namespace | Celartem |
Defines | |
| #define | celThrowOSError() |
| #define | celThrowOSError_1(str) |
| #define | celThrow_E(err) |
OS Dependent Error Handling.
| #define celThrow_E | ( | err | ) |
throw ::Celartem::Exception( \
err, \
::Celartem::Error::stringFromOSError(), \
__FILE__, __LINE__)
This macro returns the exception correspoinding to the specified error code.
| #define celThrowOSError | ( | ) |
throw::Celartem::Exception( \
::Celartem::Error::errorFromOSError(), \
::Celartem::Error::stringFromOSError(), \
__FILE__, __LINE__)
This macro returns the exception correspoinding to the current OS error state.
| #define celThrowOSError_1 | ( | str | ) |
throw ::Celartem::Exception( \
::Celartem::Error::errorFromOSError(), \
(::Celartem::Error::stringFromOSError() + utf8s(" ") + str), \
__FILE__, __LINE__)
This macro returns the exception correspoinding to the current OS error state. This macro accepts additional string as its parameter.
| str | Additional information to be shown. |