Exception: Net::SSH::Simple::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Net::SSH::Simple::Error
- Defined in:
- lib/net/ssh/simple.rb
Overview
Error that occured during a Net::SSH::Simple operation.
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Result of the interrupted operation (may be incomplete!).
-
#wrapped ⇒ Object
readonly
Reference to the underlying Exception.
Instance Method Summary collapse
-
#initialize(msg, e = $!) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(msg, e = $!) ⇒ Error
Returns a new instance of Error.
689 690 691 692 693 |
# File 'lib/net/ssh/simple.rb', line 689 def initialize(msg, e=$!) super(msg) @wrapped = e @result = msg[1] end |
Instance Attribute Details
#result ⇒ Object (readonly)
Result of the interrupted operation (may be incomplete!).
687 688 689 |
# File 'lib/net/ssh/simple.rb', line 687 def result @result end |
#wrapped ⇒ Object (readonly)
Reference to the underlying Exception
684 685 686 |
# File 'lib/net/ssh/simple.rb', line 684 def wrapped @wrapped end |
Instance Method Details
#to_s ⇒ Object
695 696 697 |
# File 'lib/net/ssh/simple.rb', line 695 def to_s "#{@wrapped} @ #{@result}" end |