Function: parseStackTrace()
parseStackTrace(
err
):undefined
|Frame
[]
Defined in: stack.ts:76
If this function returns undefined, that likely means error.stack
has been already accessed.
Consider calling captureStackTrace
first to capture the customized stack trace, e.g.,
captureStackTrace(error)
console.log(error.stack)
...
const safeError = SafeError.from(error) // Works even if `error.stack` has been accessed.
Parameters
Parameter | Type |
---|---|
err | Error |
Returns
undefined
| Frame
[]