FelipePSoares / EconoFlow

An easy system to help you control your personal or company budget.
https://econoflow.pt/
MIT License
3 stars 3 forks source link

[Backend] start to use Result Pattern to avoid exceptions #204

Open FelipePSoares opened 3 weeks ago

FelipePSoares commented 3 weeks ago

Today we throw a exception when some validation get wrong, but it's not a good thing.

To avoid throw exceptions all the time, we need to start to use result pattern.

We need to create a base result model and then modify the validations to add a error message when some validation get wrong and return it to front end.