Hierarchy

Constructors

Properties

#private: any
cause?: ErrorWithCause

Error cause

message: string
module: string
name: string

Name of the error

stack?: string
converter: SerializableConverter

Methods

  • Returns string

  • Returns string

  • Parameters

    • plugin: 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, "message" | "cause">>

  • 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 | number, any>

  • returns the error message including the error causes.

    Parameters

    • err: Error

    Returns string

Generated using TypeDoc