Exception: Aliyun::OSS::InvalidAccessControlLevel

Inherits:
InvalidOption show all
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

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