Exception: Aliyun::OSS::InvalidBucketName

Inherits:
OSSException show all
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

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)
  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