Exception: Aliyun::OSS::InvalidMetadataValue
- Inherits:
-
OSSException
- Object
- StandardError
- OSSException
- Aliyun::OSS::InvalidMetadataValue
- Defined in:
- lib/aliyun/oss/exceptions.rb
Overview
Raised if an invalid value is assigned to an OSSObject’s specific metadata name.
Instance Method Summary collapse
-
#initialize(invalid_names) ⇒ InvalidMetadataValue
constructor
A new instance of InvalidMetadataValue.
Constructor Details
#initialize(invalid_names) ⇒ InvalidMetadataValue
Returns a new instance of InvalidMetadataValue.
88 89 90 91 92 |
# File 'lib/aliyun/oss/exceptions.rb', line 88 def initialize(invalid_names) = "The following metadata names have invalid values: #{invalid_names.join(', ')}. " + "Metadata can not be larger than 2kilobytes." super() end |