# Database exception filter

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.
