If the code breaks in the try block it wont stop the application... that's a 
benefit?
Often my catch blocks only has trace(blah) in it.

________________________________
From: [email protected] [mailto:[email protected]] On Behalf 
Of SJF
Sent: Wednesday, 4 March 2009 4:01 p.m.
To: flexcoders
Subject: [flexcoders] Another on try-catch-finally ...

I have a head-cold (hence the possibly obvious answer to this question) and a 
block of code as such:

function checkResponder(e:Event = null):void
{
 try
 {
  bPollingDatabase = true;
  updateListArray();
 }
 catch (err:Error)
 {
  //
 }
}

Now considering there is no code in the 'catch' block, there can be absolutely 
no benefit whatsoever to using try-catch-finally in the above instance.

Is this correct?



Reply via email to