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

◆ stack_trace() [6/9]

xtd::diagnostics::stack_trace::stack_trace ( const std::exception &  exception,
size_t  skip_frames 
)

Initializes a new instance of the StackTrace class using the provided exception object and skipping the specified number of frames.

Parameters
exceptionThe exception object from which to construct the stack trace.
skip_framedThe number of frames up the stack from which to start the trace.
Remarks
The xtd::diagnostics::stack_trace does not contain file name, line number, or column information.
The resulting stack trace describes the stack at the time of the exception.
If the number of frames to skip is greater than or equal to the total number of frames on the call stack at the time the instance is created, the xtd::diagnostics::stack_trace will contain no frames.