Documentation Index
Fetch the complete documentation index at: https://e2b-fragments-use-case.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, '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);
}
}