Exception: Linecook::Commands::CommandError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Linecook::Commands::CommandError
- Defined in:
- lib/linecook/commands/command_error.rb
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
Instance Method Summary collapse
-
#initialize(msg, exitstatus = 1) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(msg, exitstatus = 1) ⇒ CommandError
Returns a new instance of CommandError.
6 7 8 9 |
# File 'lib/linecook/commands/command_error.rb', line 6 def initialize(msg, exitstatus=1) @exitstatus = exitstatus super(msg) end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
4 5 6 |
# File 'lib/linecook/commands/command_error.rb', line 4 def exitstatus @exitstatus end |