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.



215
216
217
218
219
# File 'gems/aws-sdk-core/lib/aws-sdk-core/errors.rb', line 215

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