Wiki

Changes between Version 2 and Version 3 of Try

Show
Ignore:
Timestamp:
12/23/10 08:59:41 (14 years ago)
Author:
hopscc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Try

    v2 v3  
    2424{{{ 
    2525try 
    26     BLOCK 
    27 catch VARNAME as EXCEPTIONTYPE  (*1)   or 
    28 catch EXCEPTIONTYPE             (*2)   or 
     26    <statements> 
     27catch <VarName> as <exceptionType>  (*1)   or 
     28catch <exceptionType>             (*2)   or 
    2929catch                           (*3) 
    30     CATCH_BLOCK 
    31      
     30    <statements>     
    3231[success                         (*4) 
    33     SUCCESS_BLOCK ] 
     32    <statements> ] 
    3433 
    3534[finally                         (*4) 
    36     FINALLY_BLOCK ] 
     35    <statements> ] 
    3736 
    3837}}} 
     
    4039    within the subsequent catch codeblock 
    4140     
    42     *2 - Use this form to catch a particular exceptionType when dont need the particular 
     41    *2 - Use this form to catch a particular exceptionType when you dont need the particular 
    4342    exception instance. (To ignore the exception or exit for example) 
    4443