Deprecated

no longer used since 11.2.0

Hierarchy

Constructors

  • Parameters

    • id: string
    • Optional options: Options

    Returns InvalidId

Properties

cause?: ErrorWithCause

Error cause

id: string
message: string
module: string
name: string

Name of the error

stack?: string

Methods

  • Returns string

  • Returns string

  • Parameters

    • __namedParameters: IsoErrorPlugin

    Returns void

  • Create an IsoError with additional properties without the need to create a new class.

    Type Parameters

    • P extends {
          cause?: Error;
          message: string;
      }

    Parameters

    • props: P

      properties of the IsoError

    Returns IsoError & Pick<P, Exclude<keyof P, "cause" | "message">>

  • Type Parameters

    • E extends ErrorWithCause = ErrorWithCause

    Parameters

    • text: string

      Json representation of a IsoError

    Returns E

  • Type Parameters

    • E extends ErrorWithCause = ErrorWithCause

    Parameters

    • json: Record<string | number, any>

    Returns E

  • Type Parameters

    • E extends ErrorWithCause = ErrorWithCause

    Parameters

    • text: string

      Json representation of a IsoError

    Returns E

  • Parameters

    • err: Error

    Returns string

  • Parameters

    • err: Error

    Returns string

  • Parameters

    • err: Error

    Returns Record<string, any>

  • returns the error message including the error causes.

    Parameters

    • err: Error

    Returns string

Generated using TypeDoc