I have a very simple question about re-throwing exception in Java.
Here is the code snippet:
public static void main(String[] args) throws FileNotFou
In addition to wanting to do something with the exception before exiting - like logging, the other time you would do something like that is if you want to wrap it as a different exception, like:
try {
FileReader reader = new FileReader("java.pdf");
} catch (FileNotFoundException ex) {
throw new ServletException(ex);
}