Interface AdoptExternalErrorsOptions<ExternalError, Error>

interface AdoptExternalErrorsOptions<ExternalError, Error> {
    fallbackAdopter?: ((externalError) => undefined | void | Error);
    recursive?: boolean;
}

Type Parameters

  • ExternalError
  • Error

Properties

fallbackAdopter?: ((externalError) => undefined | void | Error)

Adopts errors that were not adopted by any field.

Type declaration

    • (externalError): undefined | void | Error
    • Parameters

      Returns undefined | void | Error

recursive?: boolean

If true then external errors are adopted by both this field and all of its descendant fields.

Default

false