Exception: AWS::S3::InvalidKeyName
- Inherits:
-
S3Exception
- Object
- StandardError
- S3Exception
- AWS::S3::InvalidKeyName
- Defined in:
- lib/aws-matt/s3/exceptions.rb
Overview
Raised if an invalid key name is passed when creating an S3Object.
Instance Method Summary collapse
-
#initialize(invalid_name) ⇒ InvalidKeyName
constructor
A new instance of InvalidKeyName.
Constructor Details
#initialize(invalid_name) ⇒ InvalidKeyName
Returns a new instance of InvalidKeyName.
78 79 80 81 82 |
# File 'lib/aws-matt/s3/exceptions.rb', line 78 def initialize(invalid_name) = "`#{invalid_name}' is not a valid key name. " + "Key names must be no more than 1024 bytes long." super() end |