GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::Error Class Reference

Base exception type for runtime errors. More...

#include <GREM/core/Error.hpp>

Inheritance diagram for grem::Error:

Public Member Functions

 Error (CStringView message)
template<convertible_to< StringView > StringViewConvertible>
requires (!convertible_to<StringViewConvertible, CStringView>)
 Error (const StringViewConvertible &message)
virtual void writeMessage (String &output) const
virtual bool messageAttachesToPrecedingFilepath () const noexcept

Static Public Member Functions

template<typename OuterException>
static void throwWithNested (OuterException &&error)
static void throwWithNestedFilepath (String filepath)
static void throwWithNestedFilepath (CStringView filepath)
static String formatCurrentExceptionMessage ()

Detailed Description

Base exception type for runtime errors.

Constructor & Destructor Documentation

◆ Error() [1/2]

grem::Error::Error ( CStringView message)
inlineexplicit

◆ Error() [2/2]

template<convertible_to< StringView > StringViewConvertible>
requires (!convertible_to<StringViewConvertible, CStringView>)
grem::Error::Error ( const StringViewConvertible & message)
inlineexplicit

Member Function Documentation

◆ throwWithNested()

template<typename OuterException>
void grem::Error::throwWithNested ( OuterException && error)
inlinestatic

◆ throwWithNestedFilepath() [1/2]

void grem::Error::throwWithNestedFilepath ( String filepath)
inlinestatic

◆ throwWithNestedFilepath() [2/2]

void grem::Error::throwWithNestedFilepath ( CStringView filepath)
inlinestatic

◆ formatCurrentExceptionMessage()

String grem::Error::formatCurrentExceptionMessage ( )
staticnodiscard

◆ writeMessage()

virtual void grem::Error::writeMessage ( String & output) const
inlinevirtual

Reimplemented in grem::gltf::Error, and grem::obj::Error.

◆ messageAttachesToPrecedingFilepath()

virtual bool grem::Error::messageAttachesToPrecedingFilepath ( ) const
inlinenodiscardvirtualnoexcept

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