Template struct which creates a distinct type for each exception code.  
 More...
#include <OgreException.h>
|  | 
| 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... 
 | 
|  | 
Template struct which creates a distinct type for each exception code. 
- Note
- This is useful because it allows us to create an overloaded method for returning different exception types by value without ambiguity. From 'Modern C++ Design' (Alexandrescu 2001). 
◆ ExceptionCodes
Static definitions of error codes. 
| Enumerator | 
|---|
| 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 |  | 
 
 
◆ UnimplementedException()
      
        
          | Ogre::UnimplementedException::UnimplementedException | ( | int | inNumber, | 
        
          |  |  | const String & | inDescription, | 
        
          |  |  | const String & | inSource, | 
        
          |  |  | const char * | inFile, | 
        
          |  |  | long | inLine | 
        
          |  | ) |  |  | 
      
 
 
◆ ~UnimplementedException()
  
  | 
        
          | virtual Ogre::UnimplementedException::~UnimplementedException | ( |  | ) |  |  
          | throw | ( |  |  
          |  | ) |  |  |  | virtual | 
 
 
◆ getDescription()
  
  | 
        
          | virtual const String& Ogre::Exception::getDescription | ( |  | ) | const |  | inlinevirtualinherited | 
 
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. 
 
 
◆ getFile()
  
  | 
        
          | virtual const String& Ogre::Exception::getFile | ( |  | ) | const |  | inlinevirtualinherited | 
 
 
◆ getFullDescription()
  
  | 
        
          | virtual const String& Ogre::Exception::getFullDescription | ( |  | ) | const |  | virtualinherited | 
 
Returns a string with the full description of this error. 
 
 
◆ getLine()
  
  | 
        
          | virtual long Ogre::Exception::getLine | ( |  | ) | const |  | inlinevirtualinherited | 
 
 
◆ getNumber()
  
  | 
        
          | virtual int Ogre::Exception::getNumber | ( |  | ) | const |  
          | throw | ( |  |  
          |  | ) |  |  |  | virtualinherited | 
 
 
◆ getSource()
  
  | 
        
          | virtual const String& Ogre::Exception::getSource | ( |  | ) | const |  | inlinevirtualinherited | 
 
Gets the source function. 
 
 
◆ what()
  
  | 
        
          | const char* Ogre::Exception::what | ( |  | ) | const |  | inlineoverridenoexceptinherited | 
 
Override std::exception::what. 
 
 
The documentation for this class was generated from the following file: