|
How to catch exceptions, second try...: msg#00177web.mason.user
I posted this on the 14th, but saw no responses. I'm reposting on the hunch that everyone was distracted... I have a Mason component which uses Frontier::Client to make an XML-RPC call to a remote method which can raise an exception (a fault in XML-RPC parlance). When the fault information is detected by Frontier::Client, it obligingly calls die() with information about the error. 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? -- 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: e-smith / SME: 00177, Michael P. Soulier |
|---|---|
| Next by Date: | [OT] Machine invected by sobig.f?: 00177, Kurt Hansen |
| Previous by Thread: | e-smith / SMEi: 00177, Kees Vonk |
| Next by Thread: | Re: How to catch exceptions, second try...: 00177, Ken Williams |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |