xtd::diagnostics::stack_trace::stack_trace | ( | const std::exception & | exception, |
size_t | skip_frames, | ||
bool | need_file_info | ||
) |
Initializes a new instance of the xtd::diagnostics::stack_trace class using the provided exception object, skipping the specified number of frames and optionally capturing source information.
exception | The exception object from which to construct the stack trace. |
skip_frames | The number of frames up the stack from which to start the trace. |
need_file_info | true to capture the file name, line number, and column number; otherwise, false. |