IF YOU LIKE,THE ANSWER IS 'YES'

解决方案 »

  1.   

    补充一下.
    try{
    ....
      try{
       ....
      }catch(IOException ioex){
       ....
       throw ioex;
      }
    ...
    }catch(Exception ex){
    ....
    }
      

  2.   

    應該是這樣;
    try{
    }
    catch(Exception e){
    }
    catch(Exception e2){
    }
    ...
      

  3.   

    可以这样:
    try{
    ……
    ……
    }catch(Exception e){
      catch(Exception e){
       catch(Exception e){
      ……
        }
       
      }
    }
      

  4.   

    sorry,更正一下
    try{
    ……
    }catch(Exception e){}
      catch(Exception e){}
       catch(Exception e){}
    ……
      

  5.   

    don't be nervous about performance overhead. Use it when necessary. 
    Only ask youself "whether exception can help my design and simplify my code?" if yes, use it. don't hesitate.