lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.54.0 vs lib/aws-sdk-pricing/errors.rb in aws-sdk-pricing-1.55.0
- old
+ new
@@ -31,10 +31,11 @@
# * {ExpiredNextTokenException}
# * {InternalErrorException}
# * {InvalidNextTokenException}
# * {InvalidParameterException}
# * {NotFoundException}
+ # * {ThrottlingException}
#
# Additionally, error classes are dynamically generated for service errors based on the error code
# if they are not defined above.
module Errors
@@ -81,10 +82,14 @@
# @return [String]
def message
@message || @data[:message]
end
+
+ def retryable?
+ true
+ end
end
class InvalidNextTokenException < ServiceError
# @param [Seahorse::Client::RequestContext] context
@@ -125,9 +130,32 @@
end
# @return [String]
def message
@message || @data[:message]
+ end
+ end
+
+ class ThrottlingException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::Pricing::Types::ThrottlingException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+
+ def retryable?
+ true
+ end
+
+ def throttling?
+ true
end
end
end
end