API Documentation
Loading...
Searching...
No Matches
GraphicsException Class Reference

A common exeption thrown when an issue occurs within the NDEVR Graphics Engine. More...

#include <GraphicsException.h>

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

Public Types

enum  GraphicsExceptionType { e_general , e_device_lost }
 

Public Member Functions

 GraphicsException (const TranslatedString &error)
 
 GraphicsException (const TranslatedString &error, const TranslatedString &category)
 
void setMessage (const TranslatedString &message) final override
 
void setType (GraphicsExceptionType type)
 
GraphicsExceptionType type () const
 
- Public Member Functions inherited from Exception
 Exception (const std::exception &exception)
 
 Exception (const String &title, const bool &capture_stack=true)
 
 Exception (const TranslatedString &title, const bool &capture_stack=true)
 
 Exception (const TranslatedString &title, const TranslatedString &message, const bool &capture_stack=true)
 
virtual const TranslatedStringgetCategory () const
 
virtual TranslatedString getMessage () const
 
virtual uint04 getPriority () const
 
virtual const TranslatedStringgetTitle () const
 
UUID id () const
 
void printToLogger ()
 
void setCategory (const TranslatedString &category)
 
void setThread (const String &thread)
 
void setTitle (const TranslatedString &title)
 
virtual const StringstackTrace () const
 
const Stringthread () const
 
virtual ~Exception ()=default
 

Protected Attributes

GraphicsExceptionType m_type
 
- Protected Attributes inherited from Exception
TranslatedString m_category
 
TranslatedString m_message
 
uint04 m_priority
 
String m_stack_trace
 
String m_thread
 
TranslatedString m_title
 

Detailed Description

A common exeption thrown when an issue occurs within the NDEVR Graphics Engine.


Member Enumeration Documentation

◆ GraphicsExceptionType

Enumerator
e_general 
e_device_lost 

Constructor & Destructor Documentation

◆ GraphicsException() [1/2]

GraphicsException ( const TranslatedString & error)
explicit

◆ GraphicsException() [2/2]

GraphicsException ( const TranslatedString & error,
const TranslatedString & category )

Member Function Documentation

◆ setMessage()

void setMessage ( const TranslatedString & message)
finaloverridevirtual

Reimplemented from Exception.

◆ setType()

void setType ( GraphicsExceptionType type)

◆ type()

GraphicsExceptionType type ( ) const

Member Data Documentation

◆ m_type

GraphicsExceptionType m_type
protected

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