Exception: AWS::S3::InvalidMetadataValue

Inherits:
S3Exception
  • Object
show all
Defined in:
lib/aws/s3/exceptions.rb

Overview

Raised if an invalid value is assigned to an S3Object’s specific metadata name.

Instance Method Summary collapse

Constructor Details

#initialize(invalid_names) ⇒ InvalidMetadataValue

Returns a new instance of InvalidMetadataValue.



87
88
89
90
91
# File 'lib/aws/s3/exceptions.rb', line 87

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