Timeline for Catch "foreign" exception in adapter and convert them in own business exception is a good practice?
Current License: CC BY-SA 4.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 1, 2021 at 15:13 | comment | added | Eliaquim Tchitalacumbi | Yes, that's what I intended to convey. Your users should only see messages from you, that you control and know are relevant to your domain. Third party Exceptions should never reach your users. | |
| Jun 1, 2021 at 7:01 | comment | added | David Mason | I do not have control over 3rd party exceptions. They might contain informatino that is a security issue and should not be exposed to the user. I thought its a general best practice to define only own exceptions and show only the message of those to the user, the own domain can handle. All 3rd party exceptions can go to log, not to the user. Or am I wrong? | |
| May 31, 2021 at 15:44 | history | answered | Eliaquim Tchitalacumbi | CC BY-SA 4.0 |