Class ThrottlingException

All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ThrottlingException.Builder,ThrottlingException>

@Generated("software.amazon.awssdk:codegen") public final class ThrottlingException extends DeadlineException implements ToCopyableBuilder<ThrottlingException.Builder,ThrottlingException>

Your request exceeded a request rate quota.

See Also:
  • Method Details

    • toBuilder

      public ThrottlingException.Builder toBuilder()
      Description copied from class: AwsServiceException
      Create a AwsServiceException.Builder initialized with the properties of this AwsServiceException.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ThrottlingException.Builder,ThrottlingException>
      Overrides:
      toBuilder in class DeadlineException
      Returns:
      A new builder initialized with this config's properties.
    • builder

      public static ThrottlingException.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ThrottlingException.Builder> serializableBuilderClass()
    • serviceCode

      public String serviceCode()

      Identifies the service that is being throttled.

      Returns:
      Identifies the service that is being throttled.
    • quotaCode

      public String quotaCode()

      Identifies the quota that is being throttled.

      Returns:
      Identifies the quota that is being throttled.
    • retryAfterSeconds

      public Integer retryAfterSeconds()

      The number of seconds a client should wait before retrying the request.

      Returns:
      The number of seconds a client should wait before retrying the request.
    • hasContext

      public boolean hasContext()
      For responses, this returns true if the service returned a value for the Context property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
    • context

      public Map<String,String> context()

      Information about the resources in use when the exception was thrown.

      Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

      This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasContext() method.

      Returns:
      Information about the resources in use when the exception was thrown.
    • isRetryableException

      public boolean isRetryableException()
      Description copied from class: SdkServiceException
      Specifies whether an exception is retryable. This method by default returns false but subclasses can override this value to signal that the specific subclass is considered retryable.
      Overrides:
      isRetryableException in class SdkServiceException
      Returns:
      true if the exception is classified as retryable, otherwise false.
      See Also:
    • isThrottlingException

      public boolean isThrottlingException()
      Description copied from class: AwsServiceException
      Checks if the exception is caused by throttling, considering both generic SDK and AWS-specific error code details.
      Overrides:
      isThrottlingException in class AwsServiceException
      Returns:
      true if the status code is 429 or if the AWS error code indicates throttling, otherwise false.
      See Also:
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Overrides:
      sdkFields in class SdkServiceException
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.