Class InvalidId

Deprecated

no longer used since 11.2.0

Hierarchy

Constructors

Properties

#private: any
cause?: ErrorWithCause

Error cause

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

Name of the error

stack?: string
converter: SerializableConverter
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Returns string

  • Returns string

  • Parameters

    • plugin: IsoErrorPlugin

    Returns void

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

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

  • returns the error message including the error causes.

    Parameters

    • err: Error

    Returns string

Generated using TypeDoc