Skip Menu |
 

This queue is for tickets about the Error CPAN distribution.

Report information
The Basics
Id: 45643
Status: rejected
Priority: 0/
Queue: Error

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.17015
Fixed in: (no value)



Subject: try { die; };
Download (untitled) / with headers
text/plain 108b
use Error qw(:try); try { die; }; Should this die or catch error? -- Alexandr Ciornii, http://chorny.net
Download (untitled) / with headers
text/plain 451b
On Sat May 02 09:48:30 2009, CHORNY wrote: Show quoted text
> use Error qw(:try); try { die; }; > > Should this die or catch error? >
Well, I don't understand why you'd want to try without having a "catch {...}" or "otherwise {...}" blocks. It's against the contract of Error.pm's API. So I guess what Error does is throw the exception further since it was not caught, which seems reasonable in this context. What do you want to happen? Regards, Shlomi Fish
Resolving as rejected due to lack of response from the original submitter.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.