cangine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cangine::Exception::CangineException Class Reference

Base class for all engine exceptions. More...

#include <exception.hpp>

Inheritance diagram for cangine::Exception::CangineException:
Inheritance graph
[legend]
Collaboration diagram for cangine::Exception::CangineException:
Collaboration graph
[legend]

Public Member Functions

 CangineException (std::string msg)
 Constructs the exception with a message.
 
virtual const char * what () const noexcept override
 Returns the formatted error message.
 

Public Attributes

std::string message
 Full formatted error message.
 

Detailed Description

Base class for all engine exceptions.

Prefixes the supplied message with "cangine err: ".

Constructor & Destructor Documentation

◆ CangineException()

cangine::Exception::CangineException::CangineException ( std::string  msg)
inline

Constructs the exception with a message.

Parameters
msgHuman-readable description of the error.

Member Function Documentation

◆ what()

virtual const char * cangine::Exception::CangineException::what ( ) const
inlineoverridevirtualnoexcept

Returns the formatted error message.

Returns
Null-terminated message string.

Member Data Documentation

◆ message

std::string cangine::Exception::CangineException::message

Full formatted error message.


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