lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.32.0 vs lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.33.0

- old
+ new

@@ -27,10 +27,11 @@ # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {EmptyUploadException} # * {ImageAlreadyExistsException} + # * {ImageDigestDoesNotMatchException} # * {ImageNotFoundException} # * {ImageTagAlreadyExistsException} # * {InvalidLayerException} # * {InvalidLayerPartException} # * {InvalidParameterException} @@ -78,9 +79,24 @@ class ImageAlreadyExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::ImageAlreadyExistsException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class ImageDigestDoesNotMatchException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ECR::Types::ImageDigestDoesNotMatchException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]