Exception: Clamp::ExecutionError

Inherits:
RuntimeError show all
Defined in:
lib/clamp/errors.rb

Overview

raised to signal error during execution

Instance Attribute Summary collapse

Attributes inherited from RuntimeError

#command

Instance Method Summary collapse

Constructor Details

#initialize(message, command, status = 1) ⇒ ExecutionError

Returns a new instance of ExecutionError.



36
37
38
39
# File 'lib/clamp/errors.rb', line 36

def initialize(message, command, status = 1)
  super(message, command)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



41
42
43
# File 'lib/clamp/errors.rb', line 41

def status
  @status
end