|
[text/plain 657b]
On Mon Mar 06 20:50:49 2006, guest wrote:
> If Error::try catches an thrown exception that does not support
"throw",
> it breaks (such as APR::Error). I got around this by adding
> UNIVERSAL::can and changing line 396:
>
This problem and a related one is fixed in my version of Error.pm that
can be found here:
svn://svn.berlios.de/web-cpan/Error.pm/trunk/module/
I added a test for it, as well.
Regards,
Shlomi Fish
> throw $err if defined($err);
>
> to:
>
> if ( defined $err ) {
> throw $err if $err->can('throw');
> die $err; # perhaps there is a better alternative?
> }
>
>
> Ted
|