Exception: Aliyun::OSS::InvalidKeyName

Inherits:
OSSException show all
Defined in:
lib/aliyun/oss/exceptions.rb

Overview

Raised if an invalid key name is passed when creating an OSSObject.

Instance Method Summary collapse

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)
  message = "`#{invalid_name}' is not a valid key name. "   + 
            "Key names must be no more than 1024 bytes long."
  super(message)
end