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 PrismaClientExceptionFilter
, which already manages common cases, such as entity not found. Simply enable it globally in the DatabaseModule
, for instance.
Commit - Error Handling
Last updated