Exception: Net::SSH::Simple::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/net/ssh/simple.rb

Overview

Error that occured during a Net::SSH::Simple operation.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Error) initialize(msg, e = $!)

A new instance of Error



707
708
709
710
711
# File 'lib/net/ssh/simple.rb', line 707

def initialize(msg, e=$!)
  super(msg)
  @wrapped = e
  @result  = msg[1]
end

Instance Attribute Details

- (Object) result (readonly)

Result of the interrupted operation (may be incomplete!).



705
706
707
# File 'lib/net/ssh/simple.rb', line 705

def result
  @result
end

- (Object) wrapped (readonly)

Reference to the underlying Exception



702
703
704
# File 'lib/net/ssh/simple.rb', line 702

def wrapped
  @wrapped
end

Instance Method Details

- (Object) to_s



713
714
715
# File 'lib/net/ssh/simple.rb', line 713

def to_s
  "#{@wrapped} @ #{@result}"
end