Cortex  10.0.0-a4
Public Member Functions | Static Public Member Functions | List of all members
IECoreGL::Exception Class Reference

#include <Exception.h>

+ Inheritance diagram for IECoreGL::Exception:

Public Member Functions

 Exception (GLenum error)
 
 Exception (const std::string &what)
 Constructs an Exception with the specified error.
 
- Public Member Functions inherited from IECore::Exception
 Exception (const char *what)
 Construct with cause of exception.
 
 Exception (const std::string &what)
 
virtual const char * type () const throw ()
 
const char * what () const override throw ()
 Return cause of exception.
 
Exceptionappend (const std::string &s)
 Appends the given string to the cause of the current exception.
 
Exceptionappend (const char *s)
 Appends the given string to the cause of the current exception.
 
Exceptionprepend (const std::string &s)
 Prepends the given string to the cause of the current exception.
 
Exceptionprepend (const char *s)
 Prepends the given string to the cause of the current exception.
 

Static Public Member Functions

static void throwIfError ()
 
static void throwIfError (GLenum error)
 

Additional Inherited Members

- Protected Attributes inherited from IECore::Exception
RefCountedStringPtr m_what
 

Detailed Description

The Exception class provides a convenient means of turning OpenGL errors into Exceptions.

Constructor & Destructor Documentation

IECoreGL::Exception::Exception ( GLenum  error)

Constructs an Exception to represent the specified GL error code. Exception::what() will return a descriptive string for that particular error.

Member Function Documentation

static void IECoreGL::Exception::throwIfError ( )
static

Throws an Exception if glGetError returns anything other than GL_NO_ERROR.

static void IECoreGL::Exception::throwIfError ( GLenum  error)
static

Throws an Exception if error is anything other than GL_NO_ERROR.


The documentation for this class was generated from the following file: