Subject: | try does not handle errors that are references to objects that cannot "throw" |
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:
throw $err if defined($err);
to:
if ( defined $err ) {
throw $err if $err->can('throw');
die $err; # perhaps there is a better alternative?
}
Ted