3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Logging::Exception Class Reference

Replaces std::exception. Also contains a stacktrace of where the exception was thrown. More...

#include <Exception.hpp>

Inheritance diagram for Engine3DRadSpace.Logging::Exception:
Collaboration diagram for Engine3DRadSpace.Logging::Exception:

Public Member Functions

 Exception (const std::string &err)
 Exception ()=default
 Exception (Exception &)=default
 Exception (Exception &&)=default
virtual std::string What () const
 Same as std::exception::what(), but returns a std::string instead of const char*.
const char * what () const override
 Returns a C-style string describing the general cause of the current error.
const std::stacktrace & GetStacktrace () const noexcept
 Gets the stacktrace of where the exception was thrown.
 ~Exception () override=default

Protected Attributes

std::string _str
std::stacktrace _stacktrace

Detailed Description

Replaces std::exception. Also contains a stacktrace of where the exception was thrown.

Constructor & Destructor Documentation

◆ Exception() [1/4]

Engine3DRadSpace.Logging::Exception::Exception ( const std::string & err)
explicit

◆ Exception() [2/4]

Engine3DRadSpace.Logging::Exception::Exception ( )
default

◆ Exception() [3/4]

Engine3DRadSpace.Logging::Exception::Exception ( Exception & )
default

◆ Exception() [4/4]

Engine3DRadSpace.Logging::Exception::Exception ( Exception && )
default

◆ ~Exception()

Engine3DRadSpace.Logging::Exception::~Exception ( )
overridedefault

Member Function Documentation

◆ GetStacktrace()

const std::stacktrace & Engine3DRadSpace.Logging::Exception::GetStacktrace ( ) const
noexcept

Gets the stacktrace of where the exception was thrown.

Returns
Stacktrace of where the exception was thrown

◆ What()

std::string Engine3DRadSpace.Logging::Exception::What ( ) const
virtual

Same as std::exception::what(), but returns a std::string instead of const char*.

Returns

◆ what()

const char * Engine3DRadSpace.Logging::Exception::what ( ) const
override

Returns a C-style string describing the general cause of the current error.

Returns
C-style string describing the general cause of the current error

Member Data Documentation

◆ _stacktrace

std::stacktrace Engine3DRadSpace.Logging::Exception::_stacktrace
protected

◆ _str

std::string Engine3DRadSpace.Logging::Exception::_str
protected

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