libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Member Functions | Public Attributes | List of all members
donut::obj::Error Struct Reference

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

#include <donut/obj.hpp>

Inheritance diagram for donut::obj::Error:

Public Member Functions

 Error (const std::string &message, std::string_view::iterator position, std::size_t lineNumber)
 
 Error (const char *message, std::string_view::iterator position, std::size_t lineNumber)
 

Public Attributes

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

Detailed Description

Exception type for errors originating from the OBJ API.

Constructor & Destructor Documentation

◆ Error() [1/2]

donut::obj::Error::Error ( const std::string &  message,
std::string_view::iterator  position,
std::size_t  lineNumber 
)
inline

◆ Error() [2/2]

donut::obj::Error::Error ( const char *  message,
std::string_view::iterator  position,
std::size_t  lineNumber 
)
inline

Member Data Documentation

◆ position

std::string_view::iterator donut::obj::Error::position

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

◆ lineNumber

std::size_t donut::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: