Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/errors/Errors"

Index

Variables

Const transactionExpiredPattern

transactionExpiredPattern: RegExp = RegExp("Transaction .* has expired")

Functions

isBadRequestException

  • isBadRequestException(e: AWSError): boolean
  • Is the exception a BadRequestException?

    Parameters

    • e: AWSError

      The client error to check to see if it is a BadRequestException.

    Returns boolean

    Whether or not the exception is a BadRequestException.

isInvalidParameterException

  • isInvalidParameterException(e: AWSError): boolean
  • Is the exception an InvalidParameterException?

    Parameters

    • e: AWSError

      The client error caught.

    Returns boolean

    True if the exception is an InvalidParameterException. False otherwise.

isInvalidSessionException

  • isInvalidSessionException(e: AWSError): boolean
  • Is the exception an InvalidSessionException?

    Parameters

    • e: AWSError

      The client error caught.

    Returns boolean

    True if the exception is an InvalidSessionException. False otherwise.

isOccConflictException

  • isOccConflictException(e: AWSError): boolean
  • Is the exception an OccConflictException?

    Parameters

    • e: AWSError

      The client error caught.

    Returns boolean

    True if the exception is an OccConflictException. False otherwise.

isResourceNotFoundException

  • isResourceNotFoundException(e: AWSError): boolean
  • Is the exception a ResourceNotFoundException?

    Parameters

    • e: AWSError

      The client error to check to see if it is a ResourceNotFoundException.

    Returns boolean

    Whether or not the exception is a ResourceNotFoundException.

isResourcePreconditionNotMetException

  • isResourcePreconditionNotMetException(e: AWSError): boolean
  • Is the exception a ResourcePreconditionNotMetException?

    Parameters

    • e: AWSError

      The client error to check to see if it is a ResourcePreconditionNotMetException.

    Returns boolean

    Whether or not the exception is a ResourcePreconditionNotMetException.

isRetryableStatusCode

  • isRetryableStatusCode(e: AWSError): boolean
  • Does the error have a retryable code or status code?

    Parameters

    • e: AWSError

      The client error caught.

    Returns boolean

    True if the exception has a retryable code.

isTransactionExpiredException

  • isTransactionExpiredException(e: AWSError): boolean
  • Is the exception because the transaction expired? The transaction expiry is a message wrapped inside InvalidSessionException.

    Parameters

    • e: AWSError

      The client error to check to see if it is an InvalidSessionException due to transaction expiry.

    Returns boolean

    Whether or not the exception is is an InvalidSessionException due to transaction expiry.

Generated using TypeDoc