Skip to content

Commit

Permalink
feat(safety-net): Add improved documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
briward committed Nov 13, 2024
1 parent ec6b244 commit f7c0d68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,13 @@ If you prefer to manage errors manually, you can disable the automatic error cat
```ts
import { type Context, Kernel, NotFound } from "jsr:@raptor/framework";

// Disable automatic error catching.
const app = new Kernel({
catchErrors: false,
});

// Simulate an application error.
app.add((context: Context) => {
app.add(() => {
throw new NotFound();
});

Expand Down

0 comments on commit f7c0d68

Please sign in to comment.