Hi Stefan,
I just fixed this issue and uploaded version 0.07 to CPAN.
It should take a while to propagate to all mirrors.
Meanwhile, you can download the new version from this URL:
http://files.getdropbox.com/u/1402498/Error-TryCatch-0.07.tar.gz
-Nilson
On Wed, Jul 22, 2009 at 1:26 PM, Stefan Pfetzing via
RT<bug-Error-TryCatch@rt.cpan.org> wrote:
Show quoted text> Wed Jul 22 12:26:39 2009: Request 48089 was acted upon.
> Transaction: Ticket created by dreamind
> Queue: Error-TryCatch
> Subject: Error::TryCatch does not implicitly rethrow unhandled Exceptions
> Broken in: (no value)
> Severity: (no value)
> Owner: Nobody
> Requestors: dreamind@dreamind.de
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=48089 >
>
>
> Hi,
>
> it seems like Error::TryCatch does not behave so its qualified as a drop
> in replacement for Error.pm.
>
> Actually if you throw for example an Error::MyError inside a try block,
> and this try block does only catch Error::Generic, but not
> Error::MyError and if there is no otherwise block, then the Error should
> be rethrown.
>
> For an example see:
http://www.dreamind.de/files/exception-demo2.pl.html
>
> An equivalent Example for Error.pm is
>
http://www.dreamind.de/files/exception-demo.pl.html
>
> thanks
>