Exception: BucketLocationError

Inherits:
AMIToolExceptions::EC2FatalError show all
Defined in:
lib/ec2/amitools/uploadbundle.rb

Overview

——————————————————————————#

Instance Attribute Summary

Attributes inherited from AMIToolExceptions::EC2FatalError

#code

Instance Method Summary collapse

Constructor Details

#initialize(bucket, location, bucket_location) ⇒ BucketLocationError

Returns a new instance of BucketLocationError.



46
47
48
49
50
# File 'lib/ec2/amitools/uploadbundle.rb', line 46

def initialize(bucket, location, bucket_location)
  location = "US" if location == :unconstrained
  bucket_location = "US" if bucket_location == :unconstrained
  super(10, "Bucket \"#{bucket}\" already exists in \"#{bucket_location}\" and \"#{location}\" was specified.")
end