Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.52 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.52 KB

merge_stack_trace

Usage

Change:

Error.throwWithStackTrace(
    MyCustomException('$e'),
    trace,
);

To:

Error.throwWithStackTrace(
    MyCustomException('$e'),
    mergeTrace(StackTrace.current, trace),
);