RSS | Module Info | Add a review of Exception-Class

3 out of 3 found this review helpful:

Exception-Class (1.32)

Sorry if this feels more like a shameless plug than a review ... if you do not like to have to repeat the names of the exception classes to set up the hierarchy you might like Exception::Class::Nested. It's just a simple wrapper of this module that lets you describe the hierarchy by nesting the class definitions. This may prevent rather hard to debug typos :-)

Jenda Krynicky - 2010-12-22T17:08:06

Was this review helpful to you?  Yes No

Exception-Class (1.29) *****

Exception::Class is a great CPAN distribution. I've been using Error.pm for a while (and now co-maintain it), and was looking for something less magical (or even "black-magicke") and less of a leaky abstraction, and Exception-Class turns out to be a great solution.

The syntax for defining many exception classes is great, and it is also provides a convenient syntax for trapping and analyzing the excepions, which does not use closure games like Error.pm does.

In short: don't use Error.pm - and use Exception-Class. I should note that there's search.cpan.org/dist/Try-Tiny/ (and some other Method-Signature-like hacks) which may be worth to take a look as an alternative to the "use Error qw(:try);" syntax, but Exception-Class is naturally a complement.

Shlomi Fish - 2009-11-12T02:52:40

Was this review helpful to you?  Yes No
1 out of 1 found this review helpful:

Exception-Class (1.29) *****

Great module for flexible, user defined exceptions. I haven't used it for catching exceptions (TryCatch) but I am a big fan of using this for my exceptions.

I think that the documentation could use a little love, but that may just be because I'm not used to using this kind of thing. Maybe I'll send Rolsky some patches :-)

Frew Schmidt - 2009-09-03T12:55:50

Was this review helpful to you?  Yes No
3 out of 3 found this review helpful:

Exception-Class (1.23) *****

It's a nice system for handling exceptions in larger systems-- it's what I'm using now.

I have some sense there's a way to make it simpler, but it certainly works well enough.

Mark Stosberg - 2007-01-12T08:03:02

Was this review helpful to you?  Yes No
7 out of 7 found this review helpful:

Exception-Class (1.22) *****

It's Perlish! It's sophisticated exceptions! It's not a contradiction!

Like so much Rolskyware, Exception::Class provides a well-engineered and very customizable system for doing something that most large software needs: error trapping. It has an optimal interface (especially with the addition of Foo->caught), a simple and Perlish way to define exception hierarchies, and reasonable default behavior. Use it.

Ricardo Signes - 2005-11-04T18:34:07

Was this review helpful to you?  Yes No
3 out of 3 found this review helpful:

Exception-Class (1.19) *****

Excellent functionality for when you want to pass around specific information in a die(). The $@ is still stringified in a useful way.

Easy-to-use API for defining your own exceptions.

Johan Lindström - 2004-04-12T16:51:42

Was this review helpful to you?  Yes No
4 out of 4 found this review helpful:

Exception-Class (1.15) *****

Allows you to declare multiple exception classes concisely. API documented well. Easy to override default behaviour when you need to.

Adrian Howard - 2003-09-18T09:38:50

Was this review helpful to you?  Yes No


the camel