# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::ECR module Errors extend Aws::Errors::DynamicErrors class EmptyUploadException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::EmptyUploadException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end 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 ImageNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::ImageNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidLayerException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::InvalidLayerException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidLayerPartException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::InvalidLayerPartException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def registry_id @data[:registry_id] end # @return [String] def repository_name @data[:repository_name] end # @return [String] def upload_id @data[:upload_id] end # @return [String] def last_valid_byte_received @data[:last_valid_byte_received] end # @return [String] def message @message || @data[:message] end end class InvalidParameterException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::InvalidParameterException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidTagParameterException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::InvalidTagParameterException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LayerAlreadyExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LayerAlreadyExistsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LayerInaccessibleException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LayerInaccessibleException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LayerPartTooSmallException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LayerPartTooSmallException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LayersNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LayersNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LifecyclePolicyNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LifecyclePolicyNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LifecyclePolicyPreviewInProgressException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LifecyclePolicyPreviewInProgressException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LifecyclePolicyPreviewNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LifecyclePolicyPreviewNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::LimitExceededException] 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 def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RepositoryNotEmptyException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::RepositoryNotEmptyException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RepositoryNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::RepositoryNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class RepositoryPolicyNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::RepositoryPolicyNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ServerException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::ServerException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyTagsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::ECR::Types::TooManyTagsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end 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 end end