Exception: Aws::Errors::MissingRegionError

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

Overview

Raised when a client is constructed and region is not specified.

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MissingRegionError

Returns a new instance of MissingRegionError.


219
220
221
222
223
# File 'lib/aws-sdk-core/errors.rb', line 219

def initialize(*args)
  msg = 'No region was provided. Configure the `:region` option or '\
    "export the region name to ENV['AWS_REGION']"
  super(msg)
end