Class SQSError

Hierarchy

  • Error
    • SQSError

Constructors

Properties

code: string
fault: "server" | "client"
message: string
name: string
retryable: boolean
service: string
statusCode: number
time: Date
messageIds?: string[]
metadata?: {
    attempts?: number;
    cfId?: string;
    extendedRequestId?: string;
    httpStatusCode?: number;
    requestId?: string;
    totalRetryDelay?: number;
}

Type declaration

  • Optional Readonlyattempts?: number

    The number of times this operation was attempted.

  • Optional ReadonlycfId?: string

    A tertiary identifier for the last request sent. Used for debugging.

  • Optional ReadonlyextendedRequestId?: string

    A secondary identifier for the last request sent. Used for debugging.

  • Optional ReadonlyhttpStatusCode?: number

    The status code of the last HTTP response received for this operation.

  • Optional ReadonlyrequestId?: string

    A unique identifier for the last request sent for this operation. Often requested by AWS service teams to aid in debugging.

  • Optional ReadonlytotalRetryDelay?: number

    The total amount of time (in milliseconds) that was spent waiting between retry attempts.

queueUrl?: string
response?: { headers: Record<string, string>; body?: any; statusCode?: number }

Type declaration

  • headers: Record<string, string>

    The headers of the HTTP message.

  • Optionalbody?: any

    The body of the HTTP message. Can be: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream

  • OptionalstatusCode?: number

    The status code of the HTTP response.

stack?: string
stackTraceLimit: number
prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void