Exception: AWS::S3::InvalidBucketName

Inherits:
S3Exception show all
Defined in:
lib/aws/s3/exceptions.rb

Overview

Raised if an invalid bucket name is passed when creating a new Bucket.

Instance Method Summary collapse

Constructor Details

#initialize(invalid_name) ⇒ InvalidBucketName

Returns a new instance of InvalidBucketName.



68
69
70
71
72
73
# File 'lib/aws/s3/exceptions.rb', line 68

def initialize(invalid_name)
  message = "`#{invalid_name}' is not a valid bucket name. "      + 
            "Bucket names must be between 3 and 255 bytes and "   +
            "can contain letters, numbers, dashes and underscores."
  super(message)
end