lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.34.0 vs lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.35.0

- old
+ new

@@ -34,10 +34,11 @@ # * {ImageTagAlreadyExistsException} # * {InvalidLayerException} # * {InvalidLayerPartException} # * {InvalidParameterException} # * {InvalidTagParameterException} + # * {KmsException} # * {LayerAlreadyExistsException} # * {LayerInaccessibleException} # * {LayerPartTooSmallException} # * {LayersNotFoundException} # * {LifecyclePolicyNotFoundException} @@ -211,9 +212,29 @@ end # @return [String] def message @message || @data[:message] + end + end + + class KmsException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::ECR::Types::KmsException] 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 kms_error + @data[:kms_error] end end class LayerAlreadyExistsException < ServiceError