GitHub

DaffError

An error object containing info about the exception that generated it.

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

Properties

Name Type Description
code string

A string that uniquely identifies the error.

message string

Contains additional relevant information to the cause and/or solution of the error.

recoverable boolean

Whether the error is non-critical and recoverable or catastrophic and unrecoverable.