Exception: Aliyun::OSS::InvalidBucketName
- Inherits:
-
OSSException
- Object
- StandardError
- OSSException
- Aliyun::OSS::InvalidBucketName
- Defined in:
- lib/aliyun/oss/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.
69 70 71 72 73 74 |
# File 'lib/aliyun/oss/exceptions.rb', line 69 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 |