# 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::Transfer module Errors extend Aws::Errors::DynamicErrors class InternalServiceError < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::InternalServiceError] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidNextTokenException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::InvalidNextTokenException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class InvalidRequestException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::InvalidRequestException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def message @message || @data[:message] end end class ResourceExistsException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::ResourceExistsException] 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 resource @data[:resource] end # @return [String] def resource_type @data[:resource_type] end end class ResourceNotFoundException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::ResourceNotFoundException] 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 resource @data[:resource] end # @return [String] def resource_type @data[:resource_type] end end class ServiceUnavailableException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::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 ThrottlingException < ServiceError # @param [Seahorse::Client::RequestContext] context # @param [String] message # @param [Aws::Transfer::Types::ThrottlingException] data def initialize(context, message, data = Aws::EmptyStructure.new) super(context, message, data) end # @return [String] def retry_after_seconds @data[:retry_after_seconds] end end end end