2 ms·
You are not supposed to catch such exceptions in the first place, except at the very top level as a fallback to implement proper logging and to signal an unexpe
by samus 1y ago
You are not supposed to catch such exceptions in the first place, except at the very top level as a fallback to implement proper logging and to signal an unexpected internal error to the user. In Java, such exceptions are subclasses of RuntimeException.
Just printing a warning is not always appropriate. The code would continue to work and produce invalid data and actions.