OGRE
1.9.0
|
When thrown, provides information about an error that has occurred inside the engine. More...
#include <OgreException.h>
Public Types | |
enum | ExceptionCodes { ERR_CANNOT_WRITE_TO_FILE , ERR_INVALID_STATE , ERR_INVALIDPARAMS , ERR_RENDERINGAPI_ERROR , ERR_DUPLICATE_ITEM , ERR_ITEM_NOT_FOUND , ERR_FILE_NOT_FOUND , ERR_INTERNAL_ERROR , ERR_RT_ASSERTION_FAILED , ERR_NOT_IMPLEMENTED } |
Static definitions of error codes. More... | |
Public Member Functions | |
Exception (const Exception &rhs) | |
Copy constructor. | |
Exception (int number, const String &description, const String &source) | |
Default constructor. | |
Exception (int number, const String &description, const String &source, const char *type, const char *file, long line) | |
Advanced constructor. | |
~Exception () throw () | |
Needed for compatibility with std::exception. | |
virtual const String & | getDescription (void) const |
Returns a string with only the 'description' field of this exception. | |
virtual const String & | getFile () const |
Gets source file name. | |
virtual const String & | getFullDescription (void) const |
Returns a string with the full description of this error. | |
virtual long | getLine () const |
Gets line number. | |
virtual int | getNumber (void) const throw () |
Gets the error code. | |
virtual const String & | getSource () const |
Gets the source function. | |
Exception & | operator= (const Exception &rhs) |
Assignment operator. | |
const char * | what () const throw () |
Override std::exception::what. | |
Protected Attributes | |
String | description |
String | file |
String | fullDesc |
long | line |
int | number |
String | source |
String | typeName |
When thrown, provides information about an error that has occurred inside the engine.
Definition at line 84 of file OgreException.h.
Static definitions of error codes.
Definition at line 100 of file OgreException.h.
Default constructor.
References description, number, and source.
Referenced by Exception(), Ogre::FileNotFoundException::FileNotFoundException(), Ogre::InternalErrorException::InternalErrorException(), Ogre::InvalidParametersException::InvalidParametersException(), Ogre::InvalidStateException::InvalidStateException(), Ogre::IOException::IOException(), Ogre::ItemIdentityException::ItemIdentityException(), Ogre::RenderingAPIException::RenderingAPIException(), Ogre::RuntimeAssertionException::RuntimeAssertionException(), Ogre::UnimplementedException::UnimplementedException(), and operator=().
Ogre::Exception::Exception | ( | int | number, |
const String & | description, | ||
const String & | source, | ||
const char * | type, | ||
const char * | file, | ||
long | line ) |
Advanced constructor.
References description, file, line, number, and source.
Ogre::Exception::Exception | ( | const Exception & | rhs | ) |
Copy constructor.
References Exception().
Ogre::Exception::~Exception | ( | ) | ||||
throw | ( | ) |
Needed for compatibility with std::exception.
Definition at line 126 of file OgreException.h.
|
virtual |
Returns a string with only the 'description' field of this exception.
Use getFullDescriptionto get a full description of the error including line number, error number and what function threw the exception.
Definition at line 164 of file OgreException.h.
References description.
|
virtual |
|
virtual |
Returns a string with the full description of this error.
Referenced by what().
|
virtual |
|
virtual |
Gets the error code.
|
virtual |
Assignment operator.
References Exception().
const char * Ogre::Exception::what | ( | ) | const | |||
throw | ( | ) |
Override std::exception::what.
Definition at line 167 of file OgreException.h.
References getFullDescription().
|
protected |
Definition at line 90 of file OgreException.h.
Referenced by Exception(), Exception(), and getDescription().
|
protected |
Definition at line 92 of file OgreException.h.
Referenced by Exception(), and getFile().
|
mutableprotected |
Definition at line 93 of file OgreException.h.
|
protected |
Definition at line 87 of file OgreException.h.
Referenced by Exception(), and getLine().
|
protected |
Definition at line 88 of file OgreException.h.
Referenced by Exception(), and Exception().
|
protected |
Definition at line 91 of file OgreException.h.
Referenced by Exception(), Exception(), and getSource().
|
protected |
Definition at line 89 of file OgreException.h.