|  | OGRE-Next 3.0.0
    Object-Oriented Graphics Rendering Engine | 
When thrown, provides information about an error that has occurred inside the engine. More...
#include <OgreException.h>
 Inheritance diagram for Ogre::Exception:
 Inheritance diagram for Ogre::Exception:| 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 , ERR_INVALID_CALL } | 
| 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 () noexcept override | |
| Needed for compatibility with std::exception. | |
| virtual const String & | getDescription () 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 () const | 
| Returns a string with the full description of this error. | |
| virtual long | getLine () const | 
| Gets line number. | |
| virtual int | getNumber () const noexcept | 
| Gets the error code. | |
| virtual const String & | getSource () const | 
| Gets the source function. | |
| Exception & | operator= (const Exception &rhs) | 
| Assignment operator. | |
| const char * | what () const noexcept(true) override | 
| Override std::exception::what. | |
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.
| 
 | overridenoexcept | 
Needed for compatibility with std::exception.
| 
 | inlinevirtual | 
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.
| 
 | inlinevirtual | 
Gets source file name.
| 
 | virtual | 
Returns a string with the full description of this error.
| 
 | inlinevirtual | 
Gets line number.
| 
 | virtualnoexcept | 
Gets the error code.
| 
 | inlinevirtual | 
Gets the source function.
| 
 | inlineoverridenoexcept | 
Override std::exception::what.