Exception: AgentSandbox::SandboxNotFound

Inherits:
Error
  • Object
show all
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

Instance Method Summary collapse

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



15
16
17
# File 'lib/agent_sandbox.rb', line 15

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



15
16
17
# File 'lib/agent_sandbox.rb', line 15

def status
  @status
end