GitHub

DaffStateError

import { DaffStateError } from '@daffodil/core/state'

An error object that can be serialized in state.

interface DaffStateError {
  code: string
  message: string
  recoverable: boolean
}

Properties

code
string

The error code that uniquely identifies the type of error.

message
string

A message that describes the error.

recoverable
boolean

Whether the error is non-critical and recoverable or catastrophic and unrecoverable. This field is optional. If omitted, the error is assumed to be unrecoverable.