Alternatively, you may want to write display statements that include the
exception parameter in the catch
block:
catch (IOException e) { System.out.println(e); }
Such statements produce informative comments, such as the following:
*-- Name of missing file v ---------- java.io.FileNotFoundException: input.data