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

Declaration of the custom format exception builder system. More...

#include "sham/format/aliases.hpp"
#include <source_location>
Include dependency graph for format_exception.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::format_except_builder_t
 Type alias for a custom format exception builder function.

Functions

sham::format_error sham::make_format_exception (std::string_view function_call, std::string_view what, const std::string &fmt_string, std::source_location loc=std::source_location::current())
 Create a format error exception.
void sham::set_format_exception_builder (format_except_builder_t callback)
 Install a custom builder for format exceptions.
format_except_builder_t sham::get_format_exception_builder () noexcept
 Get the current format exception builder.

Detailed Description

Declaration of the custom format exception builder system.

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 format_exception.hpp.