void local fn DoSomething CFStringRef obj ExceptionRef e CFArrayRef array = @[@"Alpha",@"Bravo",@"Charlie"] try print @"" obj = array[3] // if exception, go to catch --> print obj print @"no exception" end try catch ( e ) // handle exception print : print @"" print e end catch finally // finally is always executed print : print @"" // ... cleanup end finally end fn fn DoSomething HandleEvents