Foamy: No matter what color it is, you should check in with your doctor if it consistently looks foamy and frothy. It may be a sign you have protein in your urine, which may mean you have issues with your kidneys. Pee doesnât usually have a strong smell.
If the file cannot be found, the exception is caught in the catch-block. In this example, the error handler simply prints the stack trace, which provides useful information for debugging. In some situations, you may need to perform some clean-up operations, or open another file instead.
When an exception occurs, we say that the exception is thrown. For example, we say that Integer.parseInt(str) throws an exception of type NumberFormatException when the value of str is illegal. When an exception is thrown, it is possible to catch the exception and prevent it from crashing the program. This is done with a try..catch statement.