OGLplus (0.45.0) a C++ wrapper for OpenGL

Exception class for out-of-memory OpenGL errors. More...

#include </home/chochlik/devel/oglplus/include/oglplus/error.hpp>

Inheritance diagram for oglplus::OutOfMemory:
Collaboration diagram for oglplus::OutOfMemory:

Public Types

typedef std::map< String, StringPropertyMap
 A map of properties attached to the exception.
 
typedef std::list< ErrorInfoPropagationInfoList
 List of ErrorInfo objects marking exception trace points.
 

Public Member Functions

GLenum Code (void) const
 Returns the OpenGL error code. More...
 
const ErrorInfoThrowInfo (void) const
 Returns information about the throw site of the exception. More...
 
const char * GLSymbol (void) const
 Returns the name of the symbol or constant related to the error. More...
 
const char * File (void) const
 Returns the path of the source file where the exception originated. More...
 
const char * Func (void) const
 Returns the name of the function where the exception originated. More...
 
unsigned Line (void) const
 Returns the line in the source file where the exception originated. More...
 
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 StringObjectDescription (void) const
 Returns the description of the object that caused the exception.
 
PropertyMap Properties (void) const
 Returns the properties of the exception. More...
 
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. More...
 

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.
 

Detailed Description

Exception class for out-of-memory OpenGL errors.

Out-of-memory is a very serious error and applications generally should not try to recover from such errors, but terminate gracefully if possible.

Member Function Documentation

GLenum oglplus::Error::Code ( void  ) const
inherited

Returns the OpenGL error code.

This is basically the value of error code returned by the glGetError functions.

See Also
ThrowInfo
File
Func
Line
ClassName
ObjectDescription
const char* oglplus::Error::Func ( void  ) const
inherited

Returns the name of the function where the exception originated.

See Also
ThrowInfo
GLSymbol
Code
File
Line
ClassName
ObjectDescription

References ErrorFunc().

const char* oglplus::Error::GLSymbol ( void  ) const
inherited
PropagationInfoList oglplus::Error::PropagationInfo ( void  ) const
inherited

Returns a list of ErrorInfo objects marking exception trace points.

See Also
OGLPLUS_ERROR_NO_PROPAGATION_INFO
PropertyMap oglplus::Error::Properties ( void  ) const
inherited

Returns the properties of the exception.

See Also
OGLPLUS_ERROR_NO_PROPERTIES
Examples:
standalone/001_triangle_wxgl_glew.cpp.
const ErrorInfo& oglplus::Error::ThrowInfo ( void  ) const
inherited

Returns information about the throw site of the exception.

See Also
GLSymbol
Code
File
Func
Line
ClassName
ObjectDescription

The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oglplus/error.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Wed Apr 30 2014 by Doxygen (version 1.8.4).