BSD Ports

devel/p5-failures 0.004 DragonFly

Minimalist exception hierarchy generator

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
APACHE20
Categories
devel, perl5
Package size
16.4 KiB, 33.0 KiB installed

Description

This module lets you define an exception hierarchy quickly and simply.

Here were my design goals:

  • minimalist interface
  • 80%25 of features in 20%25 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.

In the other systems

The newest version among them is 0.004, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-failures0.004 newestnone known-[email protected]-
FreeBSDdevel/p5-failures0.004 newestnone known-[email protected]-
HardenedBSDdevel/p5-failures0.004 newestno data-[email protected]-
GhostBSDdevel/p5-failures0.004 newestno data-[email protected]-

Install

Binary package:

pkg install p5-failures

From DPorts:

cd /usr/dports/devel/p5-failures && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 2
Required by 1