Exception: Aliyun::OSS::InvalidConnectionOption

Inherits:
InvalidOption show all
Defined in:
lib/aliyun/oss/exceptions.rb

Overview

Raised if an unrecognized option is passed when establishing a connection.

Instance Method Summary collapse

Constructor Details

#initialize(invalid_options) ⇒ InvalidConnectionOption

Returns a new instance of InvalidConnectionOption.



60
61
62
63
64
# File 'lib/aliyun/oss/exceptions.rb', line 60

def initialize(invalid_options)
  message = "The following connection options are invalid: #{invalid_options.join(', ')}. "    +
            "The valid connection options are: #{Connection::Options::VALID_OPTIONS.join(', ')}."
  super(message)
end