|
Re: How to catch exceptions, second try...: msg#00207web.mason.user
>> In my code I tried to catch the exception like so: >> >> eval { >> $result = $m->comp("/.../.../component", "remote method", a1, ...); >> }; >> if ($@) { >> blah blah blah; >> } >> >> Problem is, my code is never executed. The Mason error handler >> always gets called. What am I missing? Ken> Perhaps you just need to set error_mode to 'fatal' ? That looks like it will probably do the trick, though if I understand correctly, my users will simply get an Internal Server Error response from Apache if I don't catch a problem. Right now they at least get a "whoops" page with a form they can use to easily let us know something failed. I guess there's no way to have my cake and eat it too, is there? Thanks, -- Skip Montanaro Got gigs? http://www.musi-cal.com/ Got spam? http://spambayes.sf.net/ ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Accessing %ARGS: 00207, Jeremy Blain |
|---|---|
| Next by Date: | Re: Accessing %ARGS: 00207, John Williams |
| Previous by Thread: | Re: How to catch exceptions, second try...i: 00207, Ken Williams |
| Next by Thread: | Re: How to catch exceptions, second try...: 00207, Nate Perry-Thistle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |