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.



54
55
56
# File 'lib/sasl/base.rb', line 54

def initialize(mechanism)
  @mechanism = mechanism
end

Instance Method Details

#to_sObject



58
59
60
# File 'lib/sasl/base.rb', line 58

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