4 ms·
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 incorrec
by pletnes 8y ago
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.
- scarface74 8y agoEven if that’s the case, create a custom exception and embed in the custom exception object the actual exception.
- gpderetta 8y agoAssert