Exception: RHC::SSHCommandFailed

Inherits:
Exception show all
Defined in:
lib/rhc/exceptions.rb

Instance Attribute Summary

Attributes inherited from Exception

#code

Instance Method Summary collapse

Constructor Details

#initialize(exit_status, message = nil) ⇒ SSHCommandFailed

Returns a new instance of SSHCommandFailed.



163
164
165
# File 'lib/rhc/exceptions.rb', line 163

def initialize(exit_status, message=nil)
  super message || "SSH command finished with exit status = #{exit_status}", 133
end