Skip to Content
Hydra@exodus/errorsparseStackTrace

parseStackTrace

function

parseStackTrace

Signature

parseStackTrace(err: Error): undefined | Frame[]
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., ```ts captureStackTrace(error) console.log(error.stack) ... const safeError = SafeError.from(error) // Works even if `error.stack` has been accessed. ```

Parameters:

err: Error

Returns:

undefined | Frame[]

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right

Start building
Grateful

Contact Us

We're here to help