Java 当异常发生时传递参数 Java 处理受检异常(Checked Exception) Java 处理多个异常 Java 当异常发生时传递参数 public class Main { public static void main (String args[]) { try { throw new Exception("throwing an exception"); } catch (Exception e) { System.out.println(e.getMessage()); } } } Java 处理受检异常(Checked Exception) Java 处理多个异常