104 template<
class ExcptTypes>
131 template<
class ExcptTypes>
Scoped exception generator callback.
namespace for basic c++ utilities
void set_exception_gen_callback(exception_gen_callback_t callback)
Set the exception generator callback.
std::string exception_format(SourceLocation loc)
Format the exception message with the source location information.
void(*)(std::string msg) exception_gen_callback_t
type of the exception generator callback
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
void exception_gen_callback(std::string msg)
The callback called when an exception is thrown.
exception_gen_callback_t get_exception_gen_callback()
Get the current exception generator callback.
ExcptTypes make_except_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Create an exception with a message and a location.
void throw_unimplemented(SourceLocation loc=SourceLocation{})
Throw a std::runtime_error saying that the function is unimplemented.
provide information about the source location