LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexSandboxErrorCode
Type●Since v1.7

SandboxErrorCode

Common error codes shared across all sandbox provider implementations.

These represent the core error conditions that any sandbox provider may encounter. Provider-specific error codes should extend this type with additional codes.

Copy
SandboxErrorCode: "NOT_INITIALIZED" | "ALREADY_INITIALIZED" | "COMMAND_TIMEOUT" | "COMMAND_FAILED" | "FILE_OPERATION_FAILED"

Example

Copy
// Provider-specific error code type extending the common codes:
type MySandboxErrorCode = SandboxErrorCode | "CUSTOM_ERROR";
View source on GitHub