Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
pletnes
7y ago
0 comments
Share
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.
0 comments
default
newest
oldest
scarface74
7y ago
Even if that’s the case, create a custom exception and embed in the custom exception object the actual exception.
gpderetta
7y ago
Assert
j
/
k
navigate · click thread line to collapse