icedb
version 0.5.1
Snow particle scattering database API
|
Classes | |
class | error_options_inner |
class | xError |
Typedefs | |
typedef std::shared_ptr< xError > | xError_ptr |
typedef ICEDB_error_code | error_code_t |
typedef std::shared_ptr< ICEDB_error_context > | error_context_pt |
typedef ICEDB_ERRORCODES | error_codes |
Functions | |
DOTYPES (IMPL_xError_ADD) | |
template<> | |
DL_ICEDB std::string | stringify< std::string > (error_code_t err) |
template<> | |
DL_ICEDB const char * | stringify< const char * > (error_code_t err) |
DL_ICEDB error_context_pt | get_error_context_thread_local () |
DL_ICEDB void | stringify (error_code_t err, std::string &res) |
DL_ICEDB void | stringify (error_code_t err, const char **res) |
DL_ICEDB void | stringify (const error_context_pt &err, std::string &res) |
DL_ICEDB std::string | stringify (const error_context_pt &err) |
DL_ICEDB error_code_t | error_context_to_code (const error_context_pt &err) |
const char * | stringify (error_types et) |
template<class StringType > | |
StringType | stringify (error_code_t err) |
template<> | |
DL_ICEDB std::string | stringify (error_code_t err) |
template<> | |
DL_ICEDB const char * | stringify (error_code_t err) |
Definition at line 12 of file errorCodes.hpp.
typedef std::shared_ptr<ICEDB_error_context> icedb::error::error_context_pt |
Defines an error context. This structure contains both an error code (for fast lookups) and any ancillary information to determine why / how the error occurred. The library keeps an internal buffer of these objects, and copies them when the program requests them. It is then the programmer's job to free all instances that are thus marshalled.
typedef std::shared_ptr<xError> icedb::error::xError_ptr |
|
strong |
Definition at line 5 of file errorTypes.hpp.
icedb::error::DOTYPES | ( | IMPL_xError_ADD | ) |
DL_ICEDB error_code_t icedb::error::error_context_to_code | ( | const error_context_pt & | ) |
Get the error code from the context. Shouldn't be necessary.
Definition at line 327 of file error.cpp.
References ICEDB_error_context_to_code.
DL_ICEDB error_context_pt icedb::error::get_error_context_thread_local | ( | ) |
Copy the last error context raised within the active thread. The resulting object should be freed once no longer needed. Returns NULL if no context exists.
Definition at line 303 of file error.cpp.
References error_context_deallocate(), and get_error_context_thread_local_c().
const char * icedb::error::stringify | ( | error_types | et | ) |
Definition at line 4 of file errorTypes.cpp.
References xArrayOutOfBounds, xAssert, xBadFunctionMap, xBadFunctionReturn, xBadInput, xBlockedHookLoad, xBlockedHookUnload, xCannotFindReference, xDimensionMismatch, xDivByZero, xDLLerror, xDLLversionMismatch, xDuplicateHook, xEmptyInputFile, xFallbackTemplate, xFileExists, xHandleInUse, xHandleNotOpen, xInvalidRange, xKeyExists, xMissingConfigurationFile, xMissingFile, xMissingFolder, xMissingFrequency, xMissingHash, xMissingKey, xMissingVariable, xModelOutOfRange, xNullPointer, xOtherError, xPathExistsWrongType, xSingular, xSymbolNotFound, xTypeMismatch, xUnimplementedFunction, xUnknownFileFormat, xUnsupportedIOaction, and xUpcast.
StringType icedb::error::stringify | ( | error_code_t | err | ) |
Definition at line 46 of file error.hpp.
References DL_ICEDB, and stringify().
DL_ICEDB std::string icedb::error::stringify | ( | error_code_t | err | ) |
DL_ICEDB const char* icedb::error::stringify | ( | error_code_t | err | ) |
Definition at line 46 of file error.hpp.
References DL_ICEDB, and stringify().
DL_ICEDB void icedb::error::stringify | ( | error_code_t | err, |
std::string & | res | ||
) |
Definition at line 307 of file error.cpp.
References ICEDB_ERRORCODES_MAP.
Referenced by stringify(), stringify< std::string >(), and icedb::error::xError::what().
DL_ICEDB void icedb::error::stringify | ( | error_code_t | err, |
const char ** | res | ||
) |
Definition at line 310 of file error.cpp.
References ICEDB_ERRORCODES_MAP.
DL_ICEDB void icedb::error::stringify | ( | const error_context_pt & | err, |
std::string & | res | ||
) |
Definition at line 313 of file error.cpp.
References ICEDB_error_context_to_message, and ICEDB_error_context_to_message_size.
DL_ICEDB std::string icedb::error::stringify | ( | const error_context_pt & | err | ) |
Definition at line 321 of file error.cpp.
References stringify().
DL_ICEDB const char* icedb::error::stringify< const char *> | ( | error_code_t | err | ) |
Definition at line 298 of file error.cpp.
References ICEDB_ERRORCODES_MAP.
DL_ICEDB std::string icedb::error::stringify< std::string > | ( | error_code_t | err | ) |
Definition at line 293 of file error.cpp.
References stringify().