Exception: Aws::Errors::NoSuchEndpointError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Aws::Errors::NoSuchEndpointError
- 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
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ NoSuchEndpointError
constructor
A new instance of NoSuchEndpointError.
Constructor Details
#initialize(options = {}) ⇒ NoSuchEndpointError
212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# File 'lib/aws-sdk-core/errors.rb', line 212 def initialize( = {}) @context = [:context] @endpoint = @context.http_request.endpoint @original_error = [:original_error] super(<<-MSG) Encountered a `SocketError` while attempting to connect to: #{endpoint.to_s} 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 |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
239 240 241 |
# File 'lib/aws-sdk-core/errors.rb', line 239 def context @context end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
241 242 243 |
# File 'lib/aws-sdk-core/errors.rb', line 241 def endpoint @endpoint end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
243 244 245 |
# File 'lib/aws-sdk-core/errors.rb', line 243 def original_error @original_error end |