HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Member Functions
tt::parse_error Class Reference

#include <ttauri/exception.hpp>

Inheritance diagram for tt::parse_error:
std::runtime_error std::exception

Public Member Functions

template<typename FirstArg , typename... Args>
 parse_error (std::string_view fmt, FirstArg const &arg1, Args const &... args) noexcept
 
- Public Member Functions inherited from std::runtime_error
runtime_error (T... args)
 
what (T... args)
 
- Public Member Functions inherited from std::exception
what (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
exception (T... args)
 

Detailed Description

Exception thrown during parsing on an error.

This exception is often thrown due to an error in the syntax in both text and binary files.

The what-string should start with the location of the error in the file followed with ": " and the error message. The what-string may be shown to the user, when the parser was working on user supplied files.

The location for a text file will be: a path followed by line_nr (starting at line 1) and column_nr (starting at column 1). The location for a binary: a path followed by an optional chunk names, followed by a byte number within the chunk.

If there are nested errors, such as an error in an included file, then the what-string may be multiple-lines, where the nested error appears later in the what-string.


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