Exception: Makit::Commands::ExecutionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/makit/commands.rb

Overview

Custom exception for command execution failures

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, exit_code: nil, stderr: nil)
  @exit_code = exit_code
  @stderr = stderr
  super(message)
end

Instance Attribute Details

#exit_codeObject (readonly)

Returns the value of attribute exit_code.



19
20
21
# File 'lib/makit/commands.rb', line 19

def exit_code
  @exit_code
end

#stderrObject (readonly)

Returns the value of attribute stderr.



19
20
21
# File 'lib/makit/commands.rb', line 19

def stderr
  @stderr
end