Exception: EnhanceSwarm::CommandExecutor::CommandError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/enhance_swarm/command_executor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, exit_status: nil, stderr: nil) ⇒ CommandError

Returns a new instance of CommandError.



12
13
14
15
16
# File 'lib/enhance_swarm/command_executor.rb', line 12

def initialize(message, exit_status: nil, stderr: nil)
  super(message)
  @exit_status = exit_status
  @stderr = stderr
end

Instance Attribute Details

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



10
11
12
# File 'lib/enhance_swarm/command_executor.rb', line 10

def exit_status
  @exit_status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



10
11
12
# File 'lib/enhance_swarm/command_executor.rb', line 10

def stderr
  @stderr
end