- Cal3D 0.9 API Reference - |
#include <error.h>
Public Types | |
enum | Code { OK = 0, INTERNAL, INVALID_HANDLE, MEMORY_ALLOCATION_FAILED, FILE_NOT_FOUND, INVALID_FILE_FORMAT, FILE_PARSER_FAILED, INDEX_BUILD_FAILED, NO_PARSER_DOCUMENT, INVALID_ANIMATION_DURATION, BONE_NOT_FOUND, INVALID_ATTRIBUTE_VALUE, INVALID_KEYFRAME_COUNT, INVALID_ANIMATION_TYPE, FILE_CREATION_FAILED, FILE_WRITING_FAILED, INCOMPATIBLE_FILE_VERSION, NO_MESH_IN_MODEL, BAD_DATA_SOURCE, NULL_BUFFER, MAX_ERROR_CODE } |
Static Public Methods | |
Code | getLastErrorCode () |
Returns the code of the last error. More... | |
std::string | getLastErrorDescription () |
Returns a description of the last error. More... | |
const std::string & | getLastErrorFile () |
Returns the name of the file where the last error occured. More... | |
int | getLastErrorLine () |
Returns the line number where the last error occured. More... | |
const std::string & | getLastErrorText () |
Returns the supplementary text of the last error. More... | |
void | printLastError () |
Dumps all information about the last error to the standard output. More... | |
void | setLastError (Code code, const std::string &strFile, int line, const std::string &strText="") |
Sets all the information about the last error. More... | |
Protected Methods | |
CalError () | |
Constructs the error instance. More... | |
virtual | ~CalError () |
Destructs the error instance. More... | |
Static Protected Attributes | |
Code | m_lastErrorCode = CalError::OK |
std::string | m_strLastErrorFile |
int | m_lastErrorLine = -1 |
std::string | m_strLastErrorText |
|
Constructs the error instance. This function is the default constructor of the error instance. |
|
Destructs the error instance. This function is the destructor of the error instance. |
|
Returns the code of the last error. This function returns the code of the last error that occured inside the library.
|
|
Returns a description of the last error. This function returns a short description of the last error that occured inside the library.
|
|
Returns the name of the file where the last error occured. This function returns the name of the file where the last error occured.
|
|
Returns the line number where the last error occured. This function returns the line number where the last error occured.
|
|
Returns the supplementary text of the last error. This function returns the suppementary text of the last error occured inside the library.
|
|
Dumps all information about the last error to the standard output. This function dumps all the information about the last error that occured inside the library to the standard output. |
|
Sets all the information about the last error. This function sets all the information about the last error that occured inside the library.
|