http://qs321.pair.com?node_id=878732


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.

    .