As a programmer, I always try my best to explain what happened in the code when I have to show an error message, for example:
try {
int a = b / 0;
} catch (NumberFormatException ex) {
System.out.println("There was a problem with the number: " + ex.getMessage());
}
I think this is a very basic practice that everyone should follow. But in real life, we still see some "unknown" errors with no error code nor anything we could follow to find the reason, like this one, or this one.
I mean, every "error" has a reason, so why there is "Unknown error"? Can anyone explain this for me?