Try, Catch, and Ignore
Before today, I used to write try/catch statements where I acknowledged the error but I didn’t want to do anything about it…
try
{
new Error();
}
catch (e:Error)
{
// Do nothing!
}
After today, I will be doing…
try
{
new Error();
}
catch (ignored:Error){}
There is nothing earth shattering bleeding edge about this. However it’s one of those small tiny geek cool things about readable code. Picked it up from some J2ME code I read.




