GitHub

DaffStateError

An error object that can be serialized in state.

import { DaffStateError } from '@daffodil/core/state'
interface DaffStateError {
  code: string
  message: string
  recoverable: boolean
}

Properties

Name Type Description
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.