Exception: Kdeploy::SSHError

Inherits:
Error
  • Object
show all
Defined in:
lib/kdeploy/errors.rb

Overview

Raised when SSH operation fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_error = nil) ⇒ SSHError

Returns a new instance of SSHError.



23
24
25
26
# File 'lib/kdeploy/errors.rb', line 23

def initialize(message, original_error = nil)
  super("SSH operation failed: #{message}")
  @original_error = original_error
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



28
29
30
# File 'lib/kdeploy/errors.rb', line 28

def original_error
  @original_error
end