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

Exception type for errors originating from the OBJ API. More...

#include <GREM/core/formats/obj.hpp>

Inheritance diagram for grem::obj::Error:

Public Member Functions

 Error (const auto &message, StringView::iterator position, size_t lineNumber)
void writeMessage (String &output) const override
bool messageAttachesToPrecedingFilepath () const noexcept override
Public Member Functions inherited from grem::Error
 Error (CStringView message)
template<convertible_to< StringView > StringViewConvertible>
requires (!convertible_to<StringViewConvertible, CStringView>)
 Error (const StringViewConvertible &message)

Public Attributes

StringView::iterator position
 Iterator into the source OBJ string where the error originated from.
size_t lineNumber
 Line number, starting at 1 for the first line, where the error occured.

Additional Inherited Members

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 errors originating from the OBJ API.

Constructor & Destructor Documentation

◆ Error()

grem::obj::Error::Error ( const auto & message,
StringView::iterator position,
size_t lineNumber )
inline

Member Function Documentation

◆ writeMessage()

void grem::obj::Error::writeMessage ( String & output) const
inlineoverridevirtual

Reimplemented from grem::Error.

◆ messageAttachesToPrecedingFilepath()

bool grem::obj::Error::messageAttachesToPrecedingFilepath ( ) const
inlinenodiscardoverridevirtualnoexcept

Reimplemented from grem::Error.

Member Data Documentation

◆ position

StringView::iterator grem::obj::Error::position

Iterator into the source OBJ string where the error originated from.

◆ lineNumber

size_t grem::obj::Error::lineNumber

Line number, starting at 1 for the first line, where the error occured.


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