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