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

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

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

Inheritance diagram for grem::gltf::Error:

Public Member Functions

 Error (const auto &message, const SourceLocation &source)
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

String filepath {}
 Filepath of the glTF source string, or an empty string if there is no associated file.
size_t lineNumber
 Line number, starting at 1 for the first line.
size_t columnNumber
 Column number, starting at 1 for the first column.

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 glTF API.

Constructor & Destructor Documentation

◆ Error()

grem::gltf::Error::Error ( const auto & message,
const SourceLocation & source )
inline

Member Function Documentation

◆ writeMessage()

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

Reimplemented from grem::Error.

◆ messageAttachesToPrecedingFilepath()

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

Reimplemented from grem::Error.

Member Data Documentation

◆ filepath

String grem::gltf::Error::filepath {}

Filepath of the glTF source string, or an empty string if there is no associated file.

◆ lineNumber

size_t grem::gltf::Error::lineNumber

Line number, starting at 1 for the first line.

A value of 0 means no particular line.

◆ columnNumber

size_t grem::gltf::Error::columnNumber

Column number, starting at 1 for the first column.

A value of 0 means no particular column.


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