Exception: Aliyun::OSS::InvalidKeyName
- Inherits:
-
OSSException
- Object
- StandardError
- OSSException
- Aliyun::OSS::InvalidKeyName
- Defined in:
- lib/aliyun/oss/exceptions.rb
Overview
Raised if an invalid key name is passed when creating an OSSObject.
Instance Method Summary collapse
-
#initialize(invalid_name) ⇒ InvalidKeyName
constructor
A new instance of InvalidKeyName.
Constructor Details
#initialize(invalid_name) ⇒ InvalidKeyName
Returns a new instance of InvalidKeyName.
79 80 81 82 83 |
# File 'lib/aliyun/oss/exceptions.rb', line 79 def initialize(invalid_name) = "`#{invalid_name}' is not a valid key name. " + "Key names must be no more than 1024 bytes long." super() end |