Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
exception.cpp File Reference
Include dependency graph for exception.cpp:

Go to the source code of this file.

Namespaces

namespace  shambase
 namespace for basic c++ utilities

Functions

std::string shambase::exception_format (SourceLocation loc)
 Format the exception message with the source location information.
void shambase::exception_gen_callback (std::string msg)
 The callback called when an exception is thrown.
void shambase::set_exception_gen_callback (exception_gen_callback_t callback)
 Set the exception generator callback.
exception_gen_callback_t shambase::get_exception_gen_callback ()
 Get the current exception generator callback.
fmt::format_error shambase::format_exception_builder (std::string_view function_call, std::string_view what, const std::string &fmt_string, std::source_location loc)

Variables

void(* shambase::exception_print_callback )(std::string msg) = nullptr
 exception print callback func ptr

Detailed Description

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 exception.cpp.