Exception: AWS::S3::InvalidKeyName

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

Overview

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

Instance Method Summary collapse

Constructor Details

#initialize(invalid_name) ⇒ InvalidKeyName

Returns a new instance of InvalidKeyName.



78
79
80
81
82
# File 'lib/aws/s3/exceptions.rb', line 78

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