Oficina Framework  1.3
Games Framework
OficinaFramework::OficinaException Class Reference

Base class for all framework exceptions. More...

#include <OficinaExceptions.hpp>

Inheritance diagram for OficinaFramework::OficinaException:
OficinaFramework::InvalidAssetException OficinaFramework::SystemInitializationErrorException

Public Member Functions

 OficinaException ()
 Instantiates the exception with default error message. More...
 
 OficinaException (std::string message)
 Instantiates the exception with a given error message. More...
 
std::string GetMessage ()
 Gets the exception message. More...
 
virtual const char * what () const throw ()
 Returns the message for the actual system exception display. More...
 

Protected Attributes

std::string message
 

Detailed Description

Base class for all framework exceptions.

Constructor & Destructor Documentation

◆ OficinaException() [1/2]

OficinaFramework::OficinaException::OficinaException ( )

Instantiates the exception with default error message.

◆ OficinaException() [2/2]

OficinaFramework::OficinaException::OficinaException ( std::string  message)

Instantiates the exception with a given error message.

Parameters
messageThe message to be set to the exception.

Member Function Documentation

◆ GetMessage()

std::string OficinaFramework::OficinaException::GetMessage ( )

Gets the exception message.

Returns
An std::string containing the exception message.

◆ what()

virtual const char* OficinaFramework::OficinaException::what ( ) const
throw (
)
inlinevirtual

Returns the message for the actual system exception display.

Returns
See also
GetMessage

Reimplemented in OficinaFramework::SystemInitializationErrorException, and OficinaFramework::InvalidAssetException.

Member Data Documentation

◆ message

std::string OficinaFramework::OficinaException::message
protected

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