Structure containing all error-related data; Used in custom error handlers. More...
#include </home/chochlik/devel/oglplus/include/oglplus/error.hpp>
Public Member Functions | |
GLenum | ErrorCode (void) const |
The OpenGL error code. | |
GLuint | Value (void) const |
The invalid value that caused a limit error. | |
GLuint | Limit (void) const |
The limited value limit. | |
const char * | Message (void) const |
The error message. More... | |
const ErrorInfo & | Info (void) const |
Additional error info. | |
const Error::PropertyMap & | Properties (void) const |
Additional error property (key/values) | |
bool | Assertion (void) const |
Indicates that an assertion has failed. | |
bool | FatalError (void) const |
Indicates a fatal (very severe) error like (out of memory) | |
bool | BuildError (void) const |
Indicates a build error. | |
bool | LimitError (void) const |
Indicates a limited value error. | |
Structure containing all error-related data; Used in custom error handlers.
Available only if the OGLPLUS_CUSTOM_ERROR_HANDLING compile-time switch is set to a nonzero value.
const char* oglplus::ErrorData::Message | ( | void | ) | const |
The error message.
The returned pointer should not be used when its ErrorData instance goes out of scope. If this is necessary the string should be copied.