Class InvalidStateError<T, E>

An InvalidStateError.

Type Parameters

  • T = unknown

  • E = unknown

Hierarchy

Constructors

Properties

cause?: E

The error cause.

code: string

Thr error code.

detail?: T

Returns any data passed when initializing the error.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc