# frozen_string_literal: true # WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::KinesisAnalytics # When KinesisAnalytics returns an error response, the Ruby SDK constructs and raises an error. # These errors all extend Aws::KinesisAnalytics::Errors::ServiceError < {Aws::Errors::ServiceError} # # You can rescue all KinesisAnalytics errors using ServiceError: # # begin # # do stuff # rescue Aws::KinesisAnalytics::Errors::ServiceError # # rescues all KinesisAnalytics API errors # end # # # ## Request Context # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns # information about the request that generated the error. # See {Seahorse::Client::RequestContext} for more information. # # ## Error Classes # * {CodeValidationException} # * {ConcurrentModificationException} # * {InvalidApplicationConfigurationException} # * {InvalidArgumentException} # * {LimitExceededException} # * {ResourceInUseException} # * {ResourceNotFoundException} # * {ResourceProvisionedThroughputExceededException} # * {ServiceUnavailableException} # * {TooManyTagsException} # * {UnableToDetectSchemaException} # * {UnsupportedOperationException} # # Additionally, error classes are dynamically generated for service errors based on the error code # if they are not defined above. module Errors extend Aws::Errors::DynamicErrors class CodeValidationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::CodeValidationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ConcurrentModificationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::ConcurrentModificationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidApplicationConfigurationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::InvalidApplicationConfigurationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidArgumentException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::InvalidArgumentException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class LimitExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::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 ResourceInUseException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::ResourceInUseException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::ResourceNotFoundException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceProvisionedThroughputExceededException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::ResourceProvisionedThroughputExceededException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ServiceUnavailableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::ServiceUnavailableException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class TooManyTagsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::TooManyTagsException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class UnableToDetectSchemaException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::UnableToDetectSchemaException] 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 raw_input_records @data[:raw_input_records] end # @return [String] def processed_input_records @data[:processed_input_records] end end class UnsupportedOperationException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::KinesisAnalytics::Types::UnsupportedOperationException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end end end