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

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 http://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-12 02: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-03 12: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-12 08:03:02
Was this review helpful to you?  Yes No

6 out of 6 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-04 18:34:07
Was this review helpful to you?  Yes No

2 out of 2 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-12 16:51:42
Was this review helpful to you?  Yes No

3 out of 3 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-18 09:38:50
Was this review helpful to you?  Yes No


the camel