> 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/extra-module-2-exception-filters/database-exception-filter.md).

# Database exception filter

An exception filter for common database errors.

Let's then proceed to the second part: create an exception filter responsible for catching and handling those three types of database error mentioned previously.

```sh
nest g f database/exception-filters/database-exception
```

First, we'll perform steps mostly already familiar to us.
