> For the complete documentation index, see [llms.txt](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kinesis-school-of-programming.gitbook.io/nestjs-unleashed/parallel-module-prisma/error-handling.md).

# Error Handling

A feature that comes out-of-the-box with this Prisma schematic for handling errors.

In the absence of a more robust and specific **exception filter**, we may use the standard <mark style="color:blue;">`PrismaClientExceptionFilter`</mark>, which already manages common cases, such as **entity not found**. Simply enable it globally in the <mark style="color:blue;">`DatabaseModule`</mark>, for instance.

```typescript
{
  provide: APP_FILTER,
  useValue: new PrismaClientExceptionFilter(),
}
```

<mark style="color:green;">**Commit**</mark> - Error Handling
