lib/aws-sdk-finspace/errors.rb in aws-sdk-finspace-1.14.0 vs lib/aws-sdk-finspace/errors.rb in aws-sdk-finspace-1.15.0

- old
+ new

@@ -26,13 +26,15 @@ # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {AccessDeniedException} + # * {ConflictException} # * {InternalServerException} # * {InvalidRequestException} # * {LimitExceededException} + # * {ResourceAlreadyExistsException} # * {ResourceNotFoundException} # * {ServiceQuotaExceededException} # * {ThrottlingException} # * {ValidationException} # @@ -50,10 +52,30 @@ def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end end + class ConflictException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Finspace::Types::ConflictException] 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 reason + @data[:reason] + end + end + class InternalServerException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Finspace::Types::InternalServerException] data @@ -85,9 +107,24 @@ class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Finspace::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 ResourceAlreadyExistsException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Finspace::Types::ResourceAlreadyExistsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]