Exception: MotherBrain::RemoteCommandError

Inherits:
InternalError show all
Defined in:
lib/mb/errors.rb

Constant Summary

Constants inherited from MBError

MBError::DEFAULT_EXIT_CODE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from MBError

#error_code, error_code, exit_code, #exit_code, #message, #to_hash, #to_json, #to_s

Constructor Details

#initialize(message, host = nil) ⇒ RemoteCommandError

Returns a new instance of RemoteCommandError.



151
152
153
154
# File 'lib/mb/errors.rb', line 151

def initialize(message, host=nil)
  super(message)
  @host = host if host
end

Instance Attribute Details

#hostObject (readonly)

Returns the value of attribute host.



149
150
151
# File 'lib/mb/errors.rb', line 149

def host
  @host
end