xtd 0.2.0
Loading...
Searching...
No Matches

◆ stack_trace() [9/9]

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.

Parameters
exceptionThe exception object from which to construct the stack trace.
need_file_infotrue to capture the file name, line number, and column number; otherwise, false.
Remarks
The resulting stack trace describes the stack at the time of the exception.