Exception: Aliyun::OSS::InvalidMetadataValue

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

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)
  message = "The following metadata names have invalid values: #{invalid_names.join(', ')}. " +
            "Metadata can not be larger than 2kilobytes."
  super(message)
end