#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 } |
Static definitions of error codes. More... | |
Public Methods | |
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. | |
String | getFile () |
Gets source file name. | |
long | getLine () |
Gets line number. | |
Static Public Methods | |
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 = NULL |
OgreChar | msFunctionStack [OGRE_CALL_STACK_DEPTH][256] |
ushort | msStackDepth = 0 |
The user application should never create any instances of this object unless it wishes to unify its error handling using the same object.
Definition at line 105 of file OgreException.h.
|
Static definitions of error codes.
Definition at line 124 of file OgreException.h. |
|
Default constructor.
Definition at line 42 of file OgreException.cpp. References last, and Ogre::String. |
|
Advanced constructor.
Definition at line 56 of file OgreException.cpp. References last, Ogre::LML_CRITICAL, and Ogre::String. |
|
Copy constructor.
Definition at line 72 of file OgreException.cpp. |
|
Pops a function from the stack.
Definition at line 156 of file OgreException.cpp. |
|
Pushes a function on the stack.
Definition at line 148 of file OgreException.cpp. References OGRE_CALL_STACK_DEPTH, and Ogre::String. |
|
Gets source file name.
Definition at line 172 of file OgreException.h. References Ogre::String. |
|
Returns a string with the full description of this error.
Definition at line 86 of file OgreException.cpp. References description, file, line, msFunctionStack, number, OGRE_CALL_STACK_DEPTH, source, stackDepth, Ogre::String, and Ogre::ushort. Referenced by Ogre::handleTerminate(). |
|
Retrieves a pointer to the last exception created.
Definition at line 142 of file OgreException.cpp. |
|
Gets line number.
Definition at line 176 of file OgreException.h. |
|
Gets the error code.
Definition at line 137 of file OgreException.cpp. |
|
Assignment operator.
Definition at line 77 of file OgreException.cpp. References description, file, line, number, and source. |
|
Definition at line 110 of file OgreException.h. Referenced by getFullDescription(), and operator=(). |
|
Definition at line 112 of file OgreException.h. Referenced by getFullDescription(), and operator=(). |
|
Definition at line 37 of file OgreException.cpp. Referenced by Exception(). |
|
Definition at line 108 of file OgreException.h. Referenced by getFullDescription(), and operator=(). |
|
Definition at line 39 of file OgreException.cpp. Referenced by getFullDescription(). |
|
Definition at line 40 of file OgreException.cpp. |
|
Definition at line 109 of file OgreException.h. Referenced by getFullDescription(), and operator=(). |
|
Definition at line 111 of file OgreException.h. Referenced by getFullDescription(), and operator=(). |
|
Definition at line 113 of file OgreException.h. Referenced by getFullDescription(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:56 2004