AlreadyExists error is used when a resource already exists.

Hierarchy (view full)

Constructors

Properties

body: JSONObject

The response payload.

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

The augmented message.

name: string
rawMessage: undefined | string

The message originating from the payload.

resource: string
resourceId: string
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