Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sebamar88/bytekit/llms.txt
Use this file to discover all available pages before exploring further.
Error handling and recovery utilities
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sebamar88/bytekit/llms.txt
Use this file to discover all available pages before exploring further.
import { ErrorBoundary } from "bytekit";
// or
import { ErrorBoundary } from "bytekit/error-boundary";
const boundary = new ErrorBoundary({
onError: (error) => {
console.error("Caught error:", error);
},
fallback: () => {
return { error: true, message: "Something went wrong" };
}
});
const result = await boundary.execute(async () => {
return await riskyOperation();
});