#include <OgreException.h>
Public Types | |
enum | ExceptionCodes { UNIMPLEMENTED_FEATURE, ERR_CANNOT_WRITE_TO_FILE, ERR_NO_RENDERSYSTEM_SELECTED, ERR_DIALOG_OPEN_ERROR, 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 (int number, const String &description, const String &source) | |
Default constructor. | |
Exception (int number, const String &description, const String &source, char *file, long line) | |
Advanced constructor. | |
Exception (const Exception &rhs) | |
Copy constructor. | |
void | operator= (const Exception &rhs) |
Assignment operator. | |
String | getFullDescription (void) const |
Returns a string with the full description of this error. | |
int | getNumber (void) const throw () |
Gets the error code. | |
const String & | getSource () const |
Gets the source function. | |
const String & | getFile () const |
Gets source file name. | |
long | getLine () const |
Gets line number. | |
const String & | getDescription (void) const |
Returns a string with only the 'description' field of this exception. | |
Static Public Member Functions | |
Exception * | getLastException (void) throw () |
Retrieves a pointer to the last exception created. | |
void | _pushFunction (const String &strFuncName) throw () |
Pushes a function on the stack. | |
void | _popFunction () throw () |
Pops a function from the stack. | |
Protected Attributes | |
long | line |
int | number |
String | description |
String | source |
String | file |
ushort | stackDepth |
Static Protected Attributes | |
Exception * | last |
String | msFunctionStack [OGRE_CALL_STACK_DEPTH] |
ushort | msStackDepth |
Definition at line 105 of file OgreException.h.
|
Static definitions of error codes.
Definition at line 124 of file OgreException.h. |
|
Default constructor.
|
|
Advanced constructor.
|
|
Copy constructor.
|
|
Pops a function from the stack.
|
|
Pushes a function on the stack.
|
|
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 187 of file OgreException.h. References Ogre::String. |
|
Gets source file name.
Definition at line 177 of file OgreException.h. References Ogre::String. |
|
Returns a string with the full description of this error.
|
|
Retrieves a pointer to the last exception created.
|
|
Gets line number.
Definition at line 181 of file OgreException.h. |
|
Gets the error code.
|
|
Gets the source function.
Definition at line 173 of file OgreException.h. References Ogre::String. |
|
Assignment operator.
|
|
Definition at line 110 of file OgreException.h. |
|
Definition at line 112 of file OgreException.h. |
|
Definition at line 114 of file OgreException.h. |
|
Definition at line 108 of file OgreException.h. |
|
Definition at line 116 of file OgreException.h. |
|
Definition at line 117 of file OgreException.h. |
|
Definition at line 109 of file OgreException.h. |
|
Definition at line 111 of file OgreException.h. |
|
Definition at line 113 of file OgreException.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:38:50 2006