摘要: 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; } 阅读全文
posted @ 2011-06-23 16:22 lxmanutd 阅读(330) 评论(0) 推荐(0) 编辑