# 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::Schemas module Errors extend Aws::Errors::DynamicErrors class BadRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::BadRequestException] 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 ConflictException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::ConflictException] 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 ForbiddenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::ForbiddenException] 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 GoneException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::GoneException] 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 InternalServerErrorException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::InternalServerErrorException] 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 NotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::NotFoundException] 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 ServiceUnavailableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::ServiceUnavailableException] 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 TooManyRequestsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::TooManyRequestsException] 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 UnauthorizedException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Schemas::Types::UnauthorizedException] 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 end end