Re:Ask HN: What is your best advice for a junior software de...
by pletnes on Wednesday October 03, 2018 @12:41PM
(#18132033)
If used correctly, «this should not happen» can be very useful, indicating e.g that the program is in some illegal state, as opposed to the input being incorrectly formatted.
[ Parent
| on HN ]
Re:Ask HN: What is your best advice for a junior software de...
by scarface74 on Wednesday October 03, 2018 @01:24PM
(#18132504)
Even if that’s the case, create a custom exception and embed in the custom exception object the actual exception.