Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: RFC: A better name for an exception handling module?

by TGI (Parson)
on Dec 23, 2010 at 05:38 UTC ( [id://878732]=note: print w/replies, xml ) Need Help??


in reply to RFC: A better name for an exception handling module?

Do you have anything on github or somewhere simlar so that we could see/play with the code?

One can't really name a thing one hasn't seen...

Exceptions are an area where Perl needs a Try::Tiny or a Moose to come along and make things good.


TGI says moo

  • Comment on Re: RFC: A better name for an exception handling module?

Replies are listed 'Best First'.
Re^2: RFC: A better name for an exception handling module?
by ELISHEVA (Prior) on Dec 23, 2010 at 22:42 UTC

    Code posted below.

    And some excerpts from the pod with a synopsis and a discussion of subclassing and localization.

    And, of course, a test suite, because what module doesn't have one?

    One interesting detail: it takes about 3x as many lines of code to generate the exception as is in the actual exception itself.

    Hmmm.

    Update: Just noticed a "print STDERR" that I meant to comment out and didn't - so now it are commented out. The line displays the code for the generated class. If you want to inspect the generated class, you can re-uncomment it.

    .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://878732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-24 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found