Skip to content
# Function: normalizeError()

normalizeError(error): object

Defined in: packages/driver-adapter-core/src/index.ts:180

Convert unknown thrown values into the structured error shape used by driver events.

Parameters

error

unknown

Returns

object

name

name: string

message

message: string

code?

optional code?: string

cause?

optional cause?: string

nextAction?

optional nextAction?: string

Released under the MIT License.