Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by TGI (Parson)
on Dec 23, 2010 at 05:38 UTC ( #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
Node Status?
node history
Node Type: note [id://878732]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-10-22 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (225 votes). Check out past polls.

    Notices?