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

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

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

Inheritance diagram for grem::xml::Error:

Public Member Functions

 Error (const auto &message, StringView::iterator position, size_t lineNumber)
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

Public Attributes

StringView::iterator position
 Iterator into the source XML 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 XML API.

Constructor & Destructor Documentation

◆ Error()

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

Member Data Documentation

◆ position

StringView::iterator grem::xml::Error::position

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

◆ lineNumber

size_t grem::xml::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: