Exception: Makit::Commands::ExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Makit::Commands::ExecutionError
- Defined in:
- lib/makit/commands.rb
Overview
Custom exception for command execution failures
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
readonly
Returns the value of attribute exit_code.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
Instance Method Summary collapse
-
#initialize(message, exit_code: nil, stderr: nil) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(message, exit_code: nil, stderr: nil) ⇒ ExecutionError
Returns a new instance of ExecutionError.
21 22 23 24 25 |
# File 'lib/makit/commands.rb', line 21 def initialize(, exit_code: nil, stderr: nil) @exit_code = exit_code @stderr = stderr super() end |
Instance Attribute Details
#exit_code ⇒ Object (readonly)
Returns the value of attribute exit_code.
19 20 21 |
# File 'lib/makit/commands.rb', line 19 def exit_code @exit_code end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
19 20 21 |
# File 'lib/makit/commands.rb', line 19 def stderr @stderr end |