Skip to content

traverseError

traverseError(error, callback, options?): void

Defined in: packages/core/src/error/traverse-error.ts:48

Traverse an error and its inner errors, calling a callback for each error encountered.

The traversal can be stopped at any time by returning false from the callback.

unknown

The root error to traverse.

TraverseErrorCallback

A function called for each error encountered. If it returns false, the traversal stops.

TraverseErrorOptions

Options to control the traversal behavior.

void