Documentation Index
Fetch the complete documentation index at: https://e2b-mintlify-docs-rewrite-anthropic-quickstart-22165.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The SDK provides specific error types:
import { AuthError, BuildError, FileUploadError } from "e2b";
try {
await Template.build(template, {
alias: "my-template",
});
} catch (error) {
if (error instanceof AuthError) {
console.error("Authentication failed:", error.message);
} else if (error instanceof FileUploadError) {
console.error("File upload failed:", error.message);
} else if (error instanceof BuildError) {
console.error("Build failed:", error.message);
}
}