摘要:
java.lang.Object java.lang.ThrowableDirect Known Subclasses: Error, Exception对于RuntimeException,通常不需要我们去捕获,这类异常由java运行系统自动抛出并自动处理。对于自定义的exception,流程如下:1.自定义一个exception类public class MyException extends Exception { String message; public MyException(String message) { super(); this.message = message; } 阅读全文