Exception: AWS::S3::InvalidAccessControlLevel
- Inherits:
-
InvalidOption
- Object
- StandardError
- S3Exception
- InvalidOption
- AWS::S3::InvalidAccessControlLevel
- Defined in:
- lib/aws/s3/exceptions.rb
Overview
Raised if an invalid value is passed to the :access
option when creating a Bucket or an S3Object.
Instance Method Summary collapse
-
#initialize(valid_levels, access_level) ⇒ InvalidAccessControlLevel
constructor
A new instance of InvalidAccessControlLevel.
Constructor Details
#initialize(valid_levels, access_level) ⇒ InvalidAccessControlLevel
Returns a new instance of InvalidAccessControlLevel.
40 41 42 |
# File 'lib/aws/s3/exceptions.rb', line 40 def initialize(valid_levels, access_level) super("Valid access control levels are #{valid_levels.inspect}. You specified `#{access_level}'.") end |