Exception: Cartage::StatusError
- Inherits:
-
StandardError
- Object
- StandardError
- Cartage::StatusError
- Defined in:
- lib/cartage.rb
Overview
Plug-in commands that want to return a specific exit code should use Cartage::StatusError to wrap the error.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
readonly
The exit status to be returned from this exception.
Instance Method Summary collapse
-
#initialize(exitstatus, exception_or_message) ⇒ StatusError
constructor
Initialize the exception with
exitstatusand the exception to wrap.
Constructor Details
#initialize(exitstatus, exception_or_message) ⇒ StatusError
Initialize the exception with exitstatus and the exception to wrap.
11 12 13 14 |
# File 'lib/cartage.rb', line 11 def initialize(exitstatus, ) super() if @exitstatus = exitstatus end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
The exit status to be returned from this exception.
17 18 19 |
# File 'lib/cartage.rb', line 17 def exitstatus @exitstatus end |