Exception is never thrown in body of corresponding try statement
A catch-block in a try statement needs to catch exactly the exception that the code inside the try {}-block can throw (or a super class of that). What you are trying to do is this: This will lead to an compiler error, because your java knows that you are trying to catch an exception that … Read more