??????????????????
??????????????????????????????????????????????μ???????????????????????????????????????????磺
????public void run() throws MyException{
????...
????try{
????...
????}catch(IOException e){
????...
????throw new MyException();
????}finally{
????...
????}
????}
????????????JDK1.4???汾?У?Throwable??????????????Throwable ????????????????????ж??????????????????????й??????????????????????????????????? cause???????????????′? throwable ????? throwable???????????? ???????? cause ????????? cause????????????γ?????????????????????????????????
?????????????????????????????μ??????????μ??????з??????????????????????????????????????
???????Throwable?????????????????????????????????????????
????Throwable(String message?? Throwable cause)
???????????????????????? cause ???? throwable??
????Throwable(Throwable cause)
???????????????? cause ?? (cause==null ? null :cause.toString())?????????????? cause ?????????????????????? throwable??
????getCause()
????????? throwable ?? cause????? cause ???????δ??????? null??
????initCause(Throwable cause)
???????? throwable ?? cause ????????????
??????Throwable??????Exception?У?????????????????????????
????Exception(String message?? Throwable cause)
??????????????????????????????
????Exception(Throwable cause)
????????????????? (cause==null ? null : cause.toString()) ??????????????????????????? cause ???????????????
??????????????????Exception??????????????????μ?????
???????Java??????????????
????1??????????try?飬????????????????????try?????棬???????????try???????????????
????2????????????????????????????????д??Excetpion??
????3??catch?龡??????????鯰??????????????????????????????????????????????????????????????
????4??????????????????????????
????5???????try...catch???????????????????????????????????????????????