Exception: AWS::S3::InvalidBucketName
- Inherits:
-
S3Exception
- Object
- StandardError
- S3Exception
- AWS::S3::InvalidBucketName
- 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
-
#initialize(invalid_name) ⇒ InvalidBucketName
constructor
A new instance of InvalidBucketName.
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) = "`#{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() end |