Exception: Aws::Errors::MissingRegionError

Inherits:
ArgumentError
  • Object
show all
Defined in:
gems/aws-sdk-core/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.



232
233
234
235
236
# File 'gems/aws-sdk-core/lib/aws-sdk-core/errors.rb', line 232

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