![]() |
UtilsLite
Utilities for C++ programming
|
A custom exception class that captures and stores a backtrace on error. More...
#include <Utils_trace.hh>
Public Member Functions | |
Runtime_TraceError (string_view reason, string_view file, int line) | |
Constructs a Runtime_TraceError with a backtrace. | |
char const * | what () const noexcept override |
A custom exception class that captures and stores a backtrace on error.
Runtime_TraceError
is a subclass of std::runtime_error
that captures the backtrace information (file, line, and reason) when an error occurs, making it easier to debug.
The exception message includes the backtrace details, which can be accessed via the what()
method.
|
inlineexplicit |
Constructs a Runtime_TraceError
with a backtrace.
This constructor initializes the exception with a backtrace that includes the error reason, the file name, and the line number where the error occurred.
reason | A description of the error or exception reason. |
file | The name of the source file where the error occurred. |
line | The line number where the error occurred. |
|
overridenoexcept |