From: Greg Brondo Date: 2004-04-13T00:44:13+09:00 Subject: Re: error catching question: Martin Hart wrote: > On Monday 12 Apr 2004 4:24 pm, Greg Brondo wrote: > >>I have some code that checks a pop3 email box for me. It is wrapped in a >>begin/rescue clause. However, somehow it seems to have escaped the rescue >>clause: >> > > [snip] > >>Any ideas why the begin/rescue didn't catch it? >> >>Thanks,. >>Greg B. > > > rescue by itself only catches StandardError and derivatives I think.. > > try > > begin > #your code > rescue Exception => e > #your code > end > Thanks! Greg B.