lib/aws-sdk-firehose/errors.rb in aws-sdk-firehose-1.60.0 vs lib/aws-sdk-firehose/errors.rb in aws-sdk-firehose-1.61.0

- old
+ new

@@ -28,10 +28,11 @@ # # ## Error Classes # * {ConcurrentModificationException} # * {InvalidArgumentException} # * {InvalidKMSResourceException} + # * {InvalidSourceException} # * {LimitExceededException} # * {ResourceInUseException} # * {ResourceNotFoundException} # * {ServiceUnavailableException} # @@ -74,9 +75,29 @@ class InvalidKMSResourceException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Firehose::Types::InvalidKMSResourceException] data + def initialize(context, message, data = Aws::EmptyStructure.new) + super(context, message, data) + end + + # @return [String] + def code + @code || @data[:code] + end + + # @return [String] + def message + @message || @data[:message] + end + end + + class InvalidSourceException < ServiceError + + # @param [Seahorse::Client::RequestContext] context + # @param [String] message + # @param [Aws::Firehose::Types::InvalidSourceException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String]