195 return g_collect_stack;
225 g_collect_stack = collect_stack;
351 return std::string();
415 std::string
const & what
416 ,
int const stack_trace_depth)
417 : std::logic_error(what.c_str())
446 ,
int const stack_trace_depth)
447 : std::logic_error(what)
466 return std::logic_error::what();
495 std::string
const & what
496 ,
int const stack_trace_depth)
497 : std::out_of_range(what.c_str())
526 ,
int const stack_trace_depth)
527 : std::out_of_range(what)
546 return std::out_of_range::what();
570 std::string
const & what
571 ,
int const stack_trace_depth)
572 : std::runtime_error(what.c_str())
597 ,
int const stack_trace_depth)
598 : std::runtime_error(what)
617 return std::runtime_error::what();
exception_base_t & set_parameter(std::string const &name, std::string const &value)
Set a parameter in this exception.
parameter_t const & get_parameters() const
Retrieve the set of exception parameters.
std::string get_parameter(std::string const &name) const
Retrieve one of the exception parameters.
stack_trace_t f_stack_trace
The variable where the exception stack trace gets saved.
exception_base_t(int const stack_trace_depth=STACK_TRACE_DEPTH)
Initialize this Snap! exception.
virtual char const * what() const override
Retrieve the what parameter as passed to the constructor.
exception_t(std::string const &what, int const stack_trace_depth=STACK_TRACE_DEPTH)
Initialize an exception from a C++ string.
logic_exception_t(std::string const &what, int const stack_trace_depth=STACK_TRACE_DEPTH)
Initialize an exception from a C++ string.
virtual char const * what() const override
Retrieve the what parameter as passed to the constructor.
virtual char const * what() const override
Retrieve the what parameter as passed to the constructor.
out_of_range_t(std::string const &what, int const stack_trace_depth=STACK_TRACE_DEPTH)
Initialize an exception from a C++ string.
Declarations of demangle functions we support.
Declarations of the exception library.
collect_stack_t g_collect_stack
Global flag to eventually prevent stack trace collection.
void set_collect_stack(collect_stack_t collect_stack)
Set a general flag on whether to collect stack traces or not.
stack_trace_t collect_stack_trace(int stack_trace_depth)
Collect the raw stack trace in a list of strings.
std::map< std::string, std::string > parameter_t
collect_stack_t get_collect_stack()
Tells you whether the general flag is true or false.
stack_trace_t collect_stack_trace_with_line_numbers(int stack_trace_depth)
Collect the stack trace in a list of strings.