lib/aws-sdk-s3control/errors.rb in aws-sdk-s3control-1.23.0 vs lib/aws-sdk-s3control/errors.rb in aws-sdk-s3control-1.24.0
- old
+ new
@@ -26,10 +26,12 @@
# information about the request that generated the error.
# See {Seahorse::Client::RequestContext} for more information.
#
# ## Error Classes
# * {BadRequestException}
+ # * {BucketAlreadyExists}
+ # * {BucketAlreadyOwnedByYou}
# * {IdempotencyException}
# * {InternalServiceException}
# * {InvalidNextTokenException}
# * {InvalidRequestException}
# * {JobStatusException}
@@ -54,9 +56,29 @@
end
# @return [String]
def message
@message || @data[:message]
+ end
+ end
+
+ class BucketAlreadyExists < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::S3Control::Types::BucketAlreadyExists] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
+ end
+ end
+
+ class BucketAlreadyOwnedByYou < ServiceError
+
+ # @param [Seahorse::Client::RequestContext] context
+ # @param [String] message
+ # @param [Aws::S3Control::Types::BucketAlreadyOwnedByYou] data
+ def initialize(context, message, data = Aws::EmptyStructure.new)
+ super(context, message, data)
end
end
class IdempotencyException < ServiceError