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

Provides consistent interface to handle errors through the throw expression. All exceptions generated by the Parke library inherit from Exception. More...

#include <Exception.hpp>

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

Public Member Functions

 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)
 
virtual void setMessage (const TranslatedString &message)
 
void setThread (const String &thread)
 
void setTitle (const TranslatedString &title)
 
virtual const StringstackTrace () const
 
const Stringthread () const
 
virtual ~Exception ()=default
 

Protected Attributes

TranslatedString m_category
 
TranslatedString m_message
 
uint04 m_priority
 
String m_stack_trace
 
String m_thread
 
TranslatedString m_title
 

Detailed Description

Provides consistent interface to handle errors through the throw expression. All exceptions generated by the Parke library inherit from Exception.


Constructor & Destructor Documentation

◆ ~Exception()

virtual ~Exception ( )
virtualdefault

◆ Exception() [1/4]

Exception ( const String & title,
const bool & capture_stack = true )

◆ Exception() [2/4]

Exception ( const TranslatedString & title,
const bool & capture_stack = true )

◆ Exception() [3/4]

Exception ( const std::exception & exception)

◆ Exception() [4/4]

Exception ( const TranslatedString & title,
const TranslatedString & message,
const bool & capture_stack = true )

Member Function Documentation

◆ getCategory()

virtual const TranslatedString & getCategory ( ) const
inlinevirtual

◆ getMessage()

virtual TranslatedString getMessage ( ) const
inlinevirtual

◆ getPriority()

virtual uint04 getPriority ( ) const
inlinevirtual

◆ getTitle()

virtual const TranslatedString & getTitle ( ) const
inlinevirtual

◆ id()

UUID id ( ) const

◆ printToLogger()

void printToLogger ( )

◆ setCategory()

void setCategory ( const TranslatedString & category)
inline

◆ setMessage()

virtual void setMessage ( const TranslatedString & message)
inlinevirtual

Reimplemented in GraphicsException.

◆ setThread()

void setThread ( const String & thread)
inline

◆ setTitle()

void setTitle ( const TranslatedString & title)
inline

◆ stackTrace()

virtual const String & stackTrace ( ) const
inlinevirtual

◆ thread()

const String & thread ( ) const
inline

Member Data Documentation

◆ m_category

TranslatedString m_category
protected

◆ m_message

TranslatedString m_message
protected

◆ m_priority

uint04 m_priority
protected

◆ m_stack_trace

String m_stack_trace
protected

◆ m_thread

String m_thread
protected

◆ m_title

TranslatedString m_title
protected

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