BSD Ports

devel/p5-failures 0.004 FreeBSD

Minimalist exception hierarchy generator

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
APACHE20
Categories
devel, perl5
Package size
16.8 KiB, 32.5 KiB installed

Description

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.

In the other systems

SystemPortVersion
FreeBSDdevel/p5-failures0.004
DragonFlydevel/p5-failures0.004

Install

Binary package:

pkg install p5-failures

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-failures>0:devel/p5-failures

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.0040.004-0.0040.004
FreeBSD:14:quarterly0.0040.004n/a0.0040.004
FreeBSD:15:latest0.0040.004n/a0.0040.004
FreeBSD:15:quarterly0.0040.004n/an/an/a
FreeBSD:16:latest0.0040.004n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 2
Run dependencies 2
Required by 1

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 4
  • %%SITE_PERL%%/custom/failures.pm
  • %%SITE_PERL%%/failures.pm
  • %%PERL5_MAN3%%/custom::failures.3.gz
  • %%PERL5_MAN3%%/failures.3.gz
distinfo 1
FileSizeSHA256
failures-0.004.tar.gz19646fd2ca702402f22f5185b12942b5079bf95ad21cde3b97a7cf2e1919147463270
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.