Exception: AgentSandbox::ExecError
- Defined in:
- lib/agent_sandbox.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(status:, stdout:, stderr:) ⇒ ExecError
constructor
A new instance of ExecError.
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
36 37 38 |
# File 'lib/agent_sandbox.rb', line 36 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
36 37 38 |
# File 'lib/agent_sandbox.rb', line 36 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
36 37 38 |
# File 'lib/agent_sandbox.rb', line 36 def stdout @stdout end |