Exception: EasyCommand::ExitError

Inherits:
CommandError show all
Defined in:
lib/easy_command.rb

Instance Attribute Summary collapse

Attributes inherited from CommandError

#code

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, code = nil, result: nil) ⇒ ExitError

Returns a new instance of ExitError.



29
30
31
32
# File 'lib/easy_command.rb', line 29

def initialize(message = nil, code = nil, result: nil)
  @result = result
  super(message, code)
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



27
28
29
# File 'lib/easy_command.rb', line 27

def result
  @result
end