Exception: SASL::UnknownMechanism
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SASL::UnknownMechanism
- 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
-
#initialize(mechanism) ⇒ UnknownMechanism
constructor
A new instance of UnknownMechanism.
- #to_s ⇒ Object
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_s ⇒ Object
36 37 38 |
# File 'lib/sasl/base.rb', line 36 def to_s "Unknown mechanism: #{@mechanism.inspect}" end |