lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.78.0 vs lib/aws-sdk-ecr/errors.rb in aws-sdk-ecr-1.79.0
- old
+ new
@@ -54,10 +54,12 @@
# * {RepositoryNotFoundException}
# * {RepositoryPolicyNotFoundException}
# * {ScanNotFoundException}
# * {SecretNotFoundException}
# * {ServerException}
+ # * {TemplateAlreadyExistsException}
+ # * {TemplateNotFoundException}
# * {TooManyTagsException}
# * {UnableToAccessSecretException}
# * {UnableToDecryptSecretValueException}
# * {UnableToGetUpstreamImageException}
# * {UnableToGetUpstreamLayerException}
@@ -520,9 +522,39 @@
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 TemplateAlreadyExistsException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECR::Types::TemplateAlreadyExistsException] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+
+ # @return [String]
+ def message
+ @message || @data[:message]
+ end
+ end
+
+ class TemplateNotFoundException < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::ECR::Types::TemplateNotFoundException] data
def initialize(context, message, data = Aws::EmptyStructure.new)
super(context, message, data)
end
# @return [String]