OGRE-Next: Ogre::ExceptionFactory Class Reference

| OGRE-Next 3.0.0 Object-Oriented Graphics Rendering Engine

Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Ogre::ExceptionFactory Class Reference
Core » General

Class implementing dispatch methods in order to construct by-value exceptions of a derived type based just on an exception code. More...

`#include <OgreException.h>`

## Static Public Member Functions
static OGRE_NORETURN void | throwException (Exception::ExceptionCodes code, int number, const String &desc, const String &src, const char *file, long line)

## Detailed Description

Class implementing dispatch methods in order to construct by-value exceptions of a derived type based just on an exception code.

Remarks
  This nicely handles construction of derived Exceptions by value (needed for throwing) without suffering from ambiguity - each code is turned into a distinct type so that methods can be overloaded. This allows OGRE_EXCEPT to stay small in implementation (desirable since it is embedded) whilst still performing rich code-to-type mapping.

## Member Function Documentation

## ◆ throwException()

static OGRE_NORETURN void Ogre::ExceptionFactory::throwException | ( | Exception::ExceptionCodes | code,
|  | int | number,
|  | const String & | desc,
|  | const String & | src,
|  | const char * | file,
|  | long | line )
| inlinestatic

References Ogre::Exception::ERR_CANNOT_WRITE_TO_FILE, Ogre::Exception::ERR_DUPLICATE_ITEM, Ogre::Exception::ERR_FILE_NOT_FOUND, Ogre::Exception::ERR_INTERNAL_ERROR, Ogre::Exception::ERR_INVALID_CALL, Ogre::Exception::ERR_INVALID_STATE, Ogre::Exception::ERR_INVALIDPARAMS, Ogre::Exception::ERR_ITEM_NOT_FOUND, Ogre::Exception::ERR_NOT_IMPLEMENTED, Ogre::Exception::ERR_RENDERINGAPI_ERROR, Ogre::Exception::ERR_RT_ASSERTION_FAILED, and OGRE_NORETURN.

The documentation for this class was generated from the following file:

- OgreException.h