class Aws::Errors::NoSuchEndpointError

Raised when attempting to connect to an endpoint and a `SocketError` is received from the HTTP client. This error is typically the result of configuring an invalid `:region`.

Attributes

context[R]
endpoint[R]
original_error[R]

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/aws-sdk-core/errors.rb, line 259
      def initialize(options = {})
        @context = options[:context]
        @endpoint = @context.http_request.endpoint
        @original_error = options[:original_error]
        super(<<-MSG)
Encountered a `SocketError` while attempting to connect to:

  #{endpoint}

This is typically the result of an invalid `:region` option or a
poorly formatted `:endpoint` option.

* Avoid configuring the `:endpoint` option directly. Endpoints are constructed
  from the `:region`. The `:endpoint` option is reserved for certain services
  or for connecting to non-standard test endpoints.

* Not every service is available in every region.

* Never suffix region names with availability zones.
  Use "us-east-1", not "us-east-1a"

Known AWS regions include (not specific to this service):

#{possible_regions}
        MSG
      end

Private Instance Methods

possible_regions() click to toggle source
# File lib/aws-sdk-core/errors.rb, line 294
def possible_regions
  Aws.partitions.each_with_object([]) do |partition, region_names|
    partition.regions.each do |region|
      region_names << region.name
    end
  end.join("\n")
end