|
From: Thorsten S. <tsc...@am...> - 2010-06-23 07:43:37
|
Guten Tag Thorsten Schöning,
am Mittwoch, 23. Juni 2010 um 08:33 schrieben Sie:
>> sub DESTROY {
>> local $@;
>> eval {
>>
>> }
>> }
>> This restores $@ after the enclosing block.
> Thanks, I will try that later and would prefer that solution, too.
I tried that and it works, meaning with local $@ I can directly die in
my eval with $@ and get the error message as soap:Fault in the client,
without local the client gets an empty response again.
I will add local $@ just to be sure but stay with my eval because I
need it anyway. The methods I call do throw die with string messages
or Exception-objects, therefore I need something to distinguish what
comes.
Mit freundlichen Grüßen,
Thorsten Schöning
--
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
Telefon: Potsdam: 0331-743881-0
E-Mail: tsc...@am...
Web: http://www.am-soft.de
AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow
|