lib/aws-sdk-applicationautoscaling/errors.rb in aws-sdk-applicationautoscaling-1.67.0 vs lib/aws-sdk-applicationautoscaling/errors.rb in aws-sdk-applicationautoscaling-1.68.0

- old
+ new

@@ -31,10 +31,12 @@ # * {FailedResourceAccessException} # * {InternalServiceException} # * {InvalidNextTokenException} # * {LimitExceededException} # * {ObjectNotFoundException} + # * {ResourceNotFoundException} + # * {TooManyTagsException} # * {ValidationException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors @@ -126,9 +128,49 @@ end # @return [String] def message @message || @data[:message] + end + end + + class ResourceNotFoundException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ApplicationAutoScaling::Types::ResourceNotFoundException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + + # @return [String] + def resource_name + @data[:resource_name] + end + end + + class TooManyTagsException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ApplicationAutoScaling::Types::TooManyTagsException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + + # @return [String] + def resource_name + @data[:resource_name] end end class ValidationException < ServiceError