An error object return in a response in case a request has failed.

Type Parameters

  • D = void

Hierarchy

  • Error
    • ResponseError

Constructors

  • Type Parameters

    • D = void

    Parameters

    • code: number
    • message: string
    • Optionaldata: D

    Returns ResponseError<D>

Properties

cause?: unknown
code: number
data: undefined | D
message: string
name: string
stack?: string
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Returns ResponseErrorLiteral<D>

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void