FreeBSD.software
Home/devel/p5-failures

p5-failures

0.004devel

Minimalist exception hierarchy generator

This module lets you define an exception hierarchy quickly and simply. Here were my design goals: - minimalist interface - 80% of features in 20% of lines of code - depend only on core modules (nearly achieved) - support hierarchical error types - identify errors types by name (class) not by parsing strings - leave (possibly expensive) trace decisions to the thrower Currently, failures is implemented in under 70 lines of code. Failure objects are implemented with Class::Tiny to allow easy subclassing (see custom::failures), but Class::Tiny only requires core modules, so other than that exception, the 'core only' goal is achieved.

$pkg install p5-failures
metacpan.org/dist/failures
Origin
devel/p5-failures
Size
32.5KiB
License
APACHE20
Maintainer
sunpoet@FreeBSD.org
Dependencies
2 packages
Required by
1 packages

Dependencies (2)

Required By (1)