Exception: Aws::Errors::NoSuchEndpointError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws-sdk-core/errors.rb

Overview

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`.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ NoSuchEndpointError

Returns a new instance of NoSuchEndpointError.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/aws-sdk-core/errors.rb', line 61

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.to_s}\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\nfrom the `:region`. The `:endpoint` option is reserved for connecting to\nnon-standard test endpoints.\n\n* Not every service is available in every region.\n\n* Never suffix region names with availability zones.\nUse \"us-east-1\", not \"us-east-1a\"\n\nKnown AWS regions include (not specific to this service):\n\n\#{possible_regions}\n")
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



88
89
90
# File 'lib/aws-sdk-core/errors.rb', line 88

def context
  @context
end

#endpointObject (readonly)

Returns the value of attribute endpoint.



90
91
92
# File 'lib/aws-sdk-core/errors.rb', line 90

def endpoint
  @endpoint
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



92
93
94
# File 'lib/aws-sdk-core/errors.rb', line 92

def original_error
  @original_error
end