Exception: Clamp::ExecutionError
- Inherits:
-
RuntimeError
- Object
- StandardError
- RuntimeError
- Clamp::ExecutionError
- Defined in:
- lib/clamp/errors.rb
Overview
raised to signal error during execution
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from RuntimeError
Instance Method Summary collapse
-
#initialize(message, command, status = 1) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
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(, command, status = 1) super(, command) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
41 42 43 |
# File 'lib/clamp/errors.rb', line 41 def status @status end |