Exception: SASL::UnknownMechanism

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/sasl/base.rb

Overview

Will be raised by SASL.new_mechanism if mechanism passed to the constructor is not known.

Instance Method Summary collapse

Constructor Details

#initialize(mechanism) ⇒ UnknownMechanism

Returns a new instance of UnknownMechanism.



32
33
34
# File 'lib/sasl/base.rb', line 32

def initialize(mechanism)
  @mechanism = mechanism
end

Instance Method Details

#to_sObject



36
37
38
# File 'lib/sasl/base.rb', line 36

def to_s
  "Unknown mechanism: #{@mechanism.inspect}"
end