Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
error_callback.hpp File Reference

Shared callback type definition for parsing error handling. More...

#include <source_location>
#include <functional>
#include <stdexcept>
Include dependency graph for error_callback.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  sham
 namespace for backends this one is named only sham since shambackends is too long to write

Typedefs

using sham::term::term_parse_callback_t = std::function<std::invalid_argument(const char *what, std::source_location where)>
 Callback signature for parsing error reporting (returns what, receives source location).

Detailed Description

Shared callback type definition for parsing error handling.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file error_callback.hpp.

Typedef Documentation

◆ term_parse_callback_t

using sham::term::term_parse_callback_t = std::function<std::invalid_argument(const char *what, std::source_location where)>

Callback signature for parsing error reporting (returns what, receives source location).

Definition at line 27 of file error_callback.hpp.