PreconditionFailed error is used when a precondition is not respected.

Hierarchy (view full)

Constructors

Properties

body: JSONObject

The response payload.

cause?: unknown
helpMessage: string
message: string = ...

The augmented message.

name: string
precondition: string
rawMessage: undefined | string

The message originating from the payload.

stack?: string
status: number

The response status.

prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void