afsharm / ServicePlace

4 stars 0 forks source link

enhance controller exception handling #4

Open afsharm opened 1 week ago

afsharm commented 1 week ago

In the service level, no try/catch is used. It means all exceptions are caught in the controller level. In some applications, I have seen even even controller does not catch exceptions. The error is logged by an automatic process and a customized error is returned to user.

Discuss which one is better, what are the solutions for this automatic process and implement it.