19#include <source_location>
36 std::string_view function_call,
37 std::string_view what,
38 const std::string &fmt_string,
39 std::source_location loc = std::source_location::current());
48 std::string_view, std::string_view,
const std::string &, std::source_location);
Type aliases for fmt types used throughout shamformat.
namespace for backends this one is named only sham since shambackends is too long to write
void set_format_exception_builder(format_except_builder_t callback)
Install a custom builder for format exceptions.
fmt::format_error format_error
Alias for fmt::format_error, the exception type thrown by format errors.
sham::format_error 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.
sham::format_error(*)( std::string_view, std::string_view, const std::string &, std::source_location) format_except_builder_t
Type alias for a custom format exception builder function.
format_except_builder_t get_format_exception_builder() noexcept
Get the current format exception builder.