An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.
An unhandled exception is an Exception that is thrown by execution but is never caught by the program, which results in a Exception Stack.
This could be avoided by catching the exception in a try-catch
statement, but it is not always appropriate to catch every possible exception. Sometimes the exception is the result of the client making a mistake rather than something that occurred where it is thrown, therefore the client should be informed of the exception. Most of the time however, it is user friendly to not propagate exceptions.
Read more here.