Exception class for general OpenGL errors. More...
#include </home/chochlik/devel/oglplus/include/oglplus/error.hpp>

Public Types | |
| typedef std::map< String, String > | PropertyMap |
| A map of properties attached to the exception. | |
| typedef std::list< ErrorInfo > | PropagationInfoList |
| List of ErrorInfo objects marking exception trace points. | |
Public Member Functions | |
| GLenum | Code (void) const |
| Returns the OpenGL error code. | |
| const ErrorInfo & | ThrowInfo (void) const |
| Returns information about the throw site of the exception. | |
| const char * | GLSymbol (void) const |
| Returns the name of the symbol or constant related to the error. | |
| const char * | File (void) const |
| Returns the path of the source file where the exception originated. | |
| const char * | Func (void) const |
| Returns the name of the function where the exception originated. | |
| unsigned | Line (void) const |
| Returns the line in the source file where the exception originated. | |
| const char * | ClassName (void) const |
| Returns the class name of the object that caused the exception. | |
| const char * | BindTarget (void) const |
| Returns the name of the binding point that caused the exception. | |
| const String & | ObjectDescription (void) const |
| Returns the description of the object that caused the exception. | |
| PropertyMap | Properties (void) const |
| Returns the properties of the exception. | |
| void | SetPropertyValue (const String &key, const String &value) |
| Set a property key/value to the exception. | |
| PropagationInfoList | PropagationInfo (void) const |
| Returns a list of ErrorInfo objects marking exception trace points. | |
Static Public Member Functions | |
| template<typename Key , typename Value > | |
| static void | AddPropertyValue (PropertyMapInit &properties, Key &&key, Value &&value) |
| Set a property key/value to the property map. | |
Exception class for general OpenGL errors.
Instances of this exception class are throws whenever an error is detected during the execution of OpenGL API calls in the OGLplus code. There are several other classes derived for more specific error types, like GL shading language compilation and linking errors, out-of-memory errors, etc. This class is derived from the standard runtime_error exception and thus the basic error message can be obtained by calling its what() member function.
| GLenum oglplus::Error::Code | ( | void | ) | const |
| const char* oglplus::Error::File | ( | void | ) | const |
Returns the path of the source file where the exception originated.
References oglplus::ErrorFile().
| const char* oglplus::Error::Func | ( | void | ) | const |
Returns the name of the function where the exception originated.
References oglplus::ErrorFunc().
| const char* oglplus::Error::GLSymbol | ( | void | ) | const |
Returns the name of the symbol or constant related to the error.
This function returns the name of the failed OpenGL function without the gl prefix in case of a function error or the name of the OpenGL constant (usually a implementation-dependent) limit which are related to the error.
References oglplus::ErrorGLSymbol().
| unsigned oglplus::Error::Line | ( | void | ) | const |
Returns the line in the source file where the exception originated.
References oglplus::ErrorLine().
| PropagationInfoList oglplus::Error::PropagationInfo | ( | void | ) | const |
Returns a list of ErrorInfo objects marking exception trace points.
| PropertyMap oglplus::Error::Properties | ( | void | ) | const |
Returns the properties of the exception.
| const ErrorInfo& oglplus::Error::ThrowInfo | ( | void | ) | const |