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
Returns a new instance of NoSuchEndpointError.
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/aws-sdk-core/errors.rb', line 259 def initialize( = {}) @context = [:context] @endpoint = @context.http_request.endpoint @original_error = [: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") |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
286 287 288 |
# File 'lib/aws-sdk-core/errors.rb', line 286 def context @context end |
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
288 289 290 |
# File 'lib/aws-sdk-core/errors.rb', line 288 def endpoint @endpoint end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
290 291 292 |
# File 'lib/aws-sdk-core/errors.rb', line 290 def original_error @original_error end |