Method: Aws::Errors::NoSuchEndpointError#initialize

Defined in:
lib/aws-sdk-core/errors.rb

#initialize(options = {}) ⇒ NoSuchEndpointError

Returns a new instance of NoSuchEndpointError.



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
# File 'lib/aws-sdk-core/errors.rb', line 284

def initialize(options = {})
  @context = options[:context]
  @endpoint = @context.http_request.endpoint
  @original_error = options[:original_error]
  super("Encountered a `SocketError` while attempting to connect to:\n\n  \#{endpoint}\n\nThis is typically the result of an invalid `:region` option or a\npoorly formatted `:endpoint` option.\n\n* Avoid configuring the `:endpoint` option directly. Endpoints are constructed\n  from the `:region`. The `:endpoint` option is reserved for certain services\n  or for connecting to non-standard test endpoints.\n\n* Not every service is available in every region.\n\n* Never suffix region names with availability zones.\n  Use \"us-east-1\", not \"us-east-1a\"\n\nKnown AWS regions include (not specific to this service):\n\n\#{possible_regions}\n  MSG\nend\n")