Exception: AgentSandbox::SandboxNotFound
- Defined in:
- lib/agent_sandbox.rb
Overview
SandboxNotFound carries the raw HTTP status + body so callers (e.g. E2B#stop deciding whether a 404 really means “sandbox gone”) can inspect the structured provider response instead of string-matching Exception#message.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil) ⇒ SandboxNotFound
constructor
A new instance of SandboxNotFound.
Constructor Details
#initialize(message = nil, status: nil, body: nil) ⇒ SandboxNotFound
Returns a new instance of SandboxNotFound.
16 17 18 19 20 |
# File 'lib/agent_sandbox.rb', line 16 def initialize( = nil, status: nil, body: nil) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
15 16 17 |
# File 'lib/agent_sandbox.rb', line 15 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
15 16 17 |
# File 'lib/agent_sandbox.rb', line 15 def status @status end |