Exception: Climate::ExitException
- Inherits:
-
CommandError
- Object
- StandardError
- Error
- CommandError
- Climate::ExitException
- Defined in:
- lib/climate/errors.rb
Overview
Command instances can raise this error to exit
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
(also: #exitstatus)
readonly
Returns the value of attribute exit_code.
Attributes inherited from CommandError
Instance Method Summary collapse
-
#initialize(msg, exit_code = 1) ⇒ ExitException
constructor
A new instance of ExitException.
Constructor Details
#initialize(msg, exit_code = 1) ⇒ ExitException
Returns a new instance of ExitException.
28 29 30 31 |
# File 'lib/climate/errors.rb', line 28 def initialize(msg, exit_code=1) @exit_code = exit_code super(msg) end |
Instance Attribute Details
#exit_code ⇒ Object (readonly) Also known as: exitstatus
Returns the value of attribute exit_code.
24 25 26 |
# File 'lib/climate/errors.rb', line 24 def exit_code @exit_code end |