Initializes a new instance of the xtd::diagnostics::stack_trace class using the provided exception object.