Skip Menu |

This queue is for tickets about the Error-TryCatch CPAN distribution.

Report information
The Basics
Id: 48089
Status: resolved
Priority: 0/
Queue: Error-TryCatch

People
Owner: nilsonsfj [...] cpan.org
Requestors: dreamind [...] dreamind.de
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 0.03
  • 0.04
  • 0.05
  • 0.06
Fixed in: 0.07



Subject: Error::TryCatch does not implicitly rethrow unhandled Exceptions
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
Subject: Re: [rt.cpan.org #48089] Error::TryCatch does not implicitly rethrow unhandled Exceptions
Date: Tue, 28 Jul 2009 19:56:35 -0300
To: bug-Error-TryCatch [...] rt.cpan.org
From: Nilson Santos Figueiredo Junior <nilsonsfj [...] cpan.org>
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 >