You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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



60
61
62
63
64
# File 'gems/aws-sdk-core/lib/aws-sdk-core/errors.rb', line 60

def initialize(*args)
  msg = "missing region; use :region option or "
  msg << "export region name to ENV['AWS_REGION']"
  super(msg)
end