![]() |
OGRE
1.12.13
Object-Oriented Graphics Rendering Engine
|
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_DUPLICATE_ITEM, ERR_FILE_NOT_FOUND, ERR_INTERNAL_ERROR, ERR_RT_ASSERTION_FAILED, ERR_NOT_IMPLEMENTED, ERR_INVALID_CALL } |
Static definitions of error codes. More... | |
Public Member Functions | |
Exception (const Exception &rhs) | |
Copy constructor. More... | |
Exception (int number, const String &description, const String &source) | |
Default constructor. More... | |
Exception (int number, const String &description, const String &source, const char *type, const char *file, long line) | |
Advanced constructor. More... | |
~Exception () throw () | |
Needed for compatibility with std::exception. More... | |
const String & | getDescription (void) const |
Returns a string with only the 'description' field of this exception. More... | |
const char * | getFile () const |
Gets source file name. More... | |
const String & | getFullDescription (void) const |
Returns a string with the full description of this error. More... | |
long | getLine () const |
Gets line number. More... | |
const String & | getSource () const |
Gets the source function. More... | |
const char * | what () const throw () |
Override std::exception::what. More... | |
When thrown, provides information about an error that has occurred inside the engine.
Default constructor.
Ogre::Exception::Exception | ( | int | number, |
const String & | description, | ||
const String & | source, | ||
const char * | type, | ||
const char * | file, | ||
long | line | ||
) |
Advanced constructor.
Ogre::Exception::Exception | ( | const Exception & | rhs | ) |
Copy constructor.
|
inline |
Needed for compatibility with std::exception.
|
inline |
Returns a string with the full description of this error.
|
inline |
Gets the source function.
|
inline |
Gets source file name.
|
inline |
Gets line number.
|
inline |
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.
|
inline |
Override std::exception::what.