Exception: ReaperMan::Utils::Process::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reaper-man/utils/process.rb

Overview

NOTE: This is extracted from the elecksee gem and some features removed that are not required here. Should be wrapped up into standalone gem so it’s more reusable.

Direct Known Subclasses

Timeout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(orig, result = nil) ⇒ CommandFailed

Returns a new instance of CommandFailed.



18
19
20
21
22
# File 'lib/reaper-man/utils/process.rb', line 18

def initialize(orig, result = nil)
  @original = orig
  @result = result
  super(orig.to_s)
end

Instance Attribute Details

#originalObject

Returns the value of attribute original.



16
17
18
# File 'lib/reaper-man/utils/process.rb', line 16

def original
  @original
end

#resultObject

Returns the value of attribute result.



16
17
18
# File 'lib/reaper-man/utils/process.rb', line 16

def result
  @result
end