// e.printStackTrace(); /* * java.io.FileNotFoundException: a (系统找不到指定的文件。) at * java.io.FileInputStream.open0(Native Method) at * java.io.FileInputStream.open(FileInputStream.java:195) at * java.io.FileInputStream.<init>(FileInputStream.java:138) at * java.io.FileInputStream.<init>(FileInputStream.java:93) at * test0222.ExceptionTest05.main(ExceptionTest05.java:11) */
String msg = e.getMessage(); System.out.println(msg); // a (系统找不到指定的文件。) }