lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.39.0 vs lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.40.0
- old
+ new
@@ -44,19 +44,21 @@
# * {LifecyclePolicyNotFoundException}
# * {LifecyclePolicyPreviewInProgressException}
# * {LifecyclePolicyPreviewNotFoundException}
# * {LimitExceededException}
# * {ReferencedImagesNotFoundException}
+ # * {RegistryPolicyNotFoundException}
# * {RepositoryAlreadyExistsException}
# * {RepositoryNotEmptyException}
# * {RepositoryNotFoundException}
# * {RepositoryPolicyNotFoundException}
# * {ScanNotFoundException}
# * {ServerException}
# * {TooManyTagsException}
# * {UnsupportedImageTypeException}
# * {UploadNotFoundException}
+ # * {ValidationException}
#
# Additionally, error classes are dynamically generated for service errors based on the error code
# if they are not defined above.
module Errors
@@ -370,10 +372,25 @@
def message
@message || @data[:message]
end
end
+ class RegistryPolicyNotFoundException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECR::Types::RegistryPolicyNotFoundException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
class RepositoryAlreadyExistsException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::ECR::Types::RepositoryAlreadyExistsException] data
@@ -495,9 +512,24 @@
class UploadNotFoundException < ServiceError
# @param [Seahorse::Client::RequestContext] context
# @param [String] message
# @param [Aws::ECR::Types::UploadNotFoundException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
+ class ValidationException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECR::Types::ValidationException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]