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

Exception type for domain-specific errors originating from the grem::networking module. More...

#include <GREM/networking/Error.hpp>

Inheritance diagram for grem::networking::Error:

Public Member Functions

 Error (std::error_code errorCode)
 Error (CStringView message)
template<convertible_to< StringView > StringViewConvertible>
requires (!convertible_to<StringViewConvertible, CStringView>)
 Error (const StringViewConvertible &message)
Public Member Functions inherited from grem::Error
 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

static std::error_code getLastErrorCode () noexcept
Static Public Member Functions inherited from grem::Error
template<typename OuterException>
static void throwWithNested (OuterException &&error)
static void throwWithNestedFilepath (String filepath)
static void throwWithNestedFilepath (CStringView filepath)
static String formatCurrentExceptionMessage ()

Detailed Description

Exception type for domain-specific errors originating from the grem::networking module.

Constructor & Destructor Documentation

◆ Error() [1/3]

grem::networking::Error::Error ( std::error_code errorCode)
inlineexplicit

◆ Error() [2/3]

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

◆ Error() [3/3]

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

Member Function Documentation

◆ getLastErrorCode()

std::error_code grem::networking::Error::getLastErrorCode ( )
staticnodiscardnoexcept

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