NDEVR
API Documentation
DeviceLostException

A specific type of Exception that occurs when a GraphicsDevice is lost. More...

Inheritance diagram for DeviceLostException:
[legend]
Collaboration diagram for DeviceLostException:
[legend]

Public Member Functions

 DeviceLostException (const TranslatedString &error)
 Constructs a device-lost exception.
 DeviceLostException (const TranslatedString &error, const TranslatedString &category)
 Constructs a device-lost exception with a category.
Public Member Functions inherited from GraphicsException
 GraphicsException (const TranslatedString &error)
 Constructs a graphics exception with an error message.
 GraphicsException (const TranslatedString &error, const TranslatedString &category)
 Constructs a graphics exception with an error message and category.
void setMessage (const TranslatedString &message) final override
 Sets the exception message.
void setType (GraphicsExceptionType type)
 Sets the exception type.
GraphicsExceptionType type () const
 Returns the exception type.

Additional Inherited Members

Public Types inherited from GraphicsException
enum  GraphicsExceptionType { e_general , e_device_lost }
 Categories of graphics exceptions. More...
Protected Attributes inherited from GraphicsException
GraphicsExceptionType m_type
 The type of this graphics exception.

Detailed Description

A specific type of Exception that occurs when a GraphicsDevice is lost.


This typically requires a complete re-initialization of the NDEVR Graphics Engine.

Definition at line 88 of file GraphicsException.h.

Constructor & Destructor Documentation

◆ DeviceLostException() [1/2]

DeviceLostException::DeviceLostException ( const TranslatedString & error)
explicit

Constructs a device-lost exception.

Parameters
[in]errorThe error description.

◆ DeviceLostException() [2/2]

DeviceLostException::DeviceLostException ( const TranslatedString & error,
const TranslatedString & category )

Constructs a device-lost exception with a category.

Parameters
[in]errorThe error description.
[in]categoryThe error category.

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