Exception: Aliyun::OSS::InvalidAccessControlLevel
- Inherits:
-
InvalidOption
- Object
- StandardError
- OSSException
- InvalidOption
- Aliyun::OSS::InvalidAccessControlLevel
- Defined in:
- lib/aliyun/oss/exceptions.rb
Overview
Raised if an invalid value is passed to the :access
option when creating a Bucket or an OSSObject.
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.
41 42 43 |
# File 'lib/aliyun/oss/exceptions.rb', line 41 def initialize(valid_levels, access_level) super("Valid access control levels are #{valid_levels.inspect}. You specified `#{access_level}'.") end |