Exception: AgentSandbox::ExecError

Inherits:
Error
  • Object
show all
Defined in:
lib/agent_sandbox.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status:, stdout:, stderr:) ⇒ ExecError

Returns a new instance of ExecError.



37
38
39
40
41
42
# File 'lib/agent_sandbox.rb', line 37

def initialize(status:, stdout:, stderr:)
  @status = status
  @stdout = stdout
  @stderr = stderr
  super("exec failed with status #{status}: #{stderr.strip}")
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



36
37
38
# File 'lib/agent_sandbox.rb', line 36

def status
  @status
end

#stderrObject (readonly)

Returns the value of attribute stderr.



36
37
38
# File 'lib/agent_sandbox.rb', line 36

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



36
37
38
# File 'lib/agent_sandbox.rb', line 36

def stdout
  @stdout
end