Options
All
  • Public
  • Public/Protected
  • All
Menu

Module @aws-sdk/service-error-classification

Index

Variables

Const CLOCK_SKEW_ERROR_CODES

CLOCK_SKEW_ERROR_CODES: string[] = ["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch",]

Errors encountered when the client clock and server clock cannot agree on the current time.

These errors are retryable, assuming the SDK has enabled clock skew correction.

Const THROTTLING_ERROR_CODES

THROTTLING_ERROR_CODES: string[] = ["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException", // DynamoDB]

Errors that indicate the SDK is being throttled.

These errors are always retryable.

Const TRANSIENT_ERROR_CODES

TRANSIENT_ERROR_CODES: string[] = ["AbortError", "TimeoutError", "RequestTimeout", "RequestTimeoutException"]

Error codes that indicate transient issues

Const TRANSIENT_ERROR_STATUS_CODES

TRANSIENT_ERROR_STATUS_CODES: number[] = [500, 502, 503, 504]

Error codes that indicate transient issues

Functions

Const isClockSkewError

  • isClockSkewError(error: SdkError): boolean

Const isRetryableByTrait

  • isRetryableByTrait(error: SdkError): boolean

Const isThrottlingError

  • isThrottlingError(error: SdkError): boolean

Const isTransientError

  • isTransientError(error: SdkError): boolean