Closed DiegoSHS closed 1 month ago
Some of the current functionalities do the same error handeling of some of the cases in this proposal of implementation Existing functionalities that can be replaced or removed from the proposal:
I have two possible ways to do this
_Originally posted by @DiegoSHS in https://github.com/CADELmx/GPD_BACKEND/discussions/23#discussioncomment-10078089_
Implementation suggest
I find this concept a cool idea, but we can make this more efficient and compact
Upgrades
we can upgrade the
PrismaErrorHandler
class by following this stepsImplementation
This is a similar aproach as the custom exception filter that we used in the past
Using in a service
Injection of the
PrismaErrorHandler
as a providerUsing with the actual service
_Originally posted by @DiegoSHS in https://github.com/CADELmx/GPD_BACKEND/discussions/23#discussioncomment-10041088_