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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-failures | 0.004 |
| DragonFly | devel/p5-failures | 0.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.004 | 0.004 | - | 0.004 | 0.004 |
| FreeBSD:14:quarterly | 0.004 | 0.004 | n/a | 0.004 | 0.004 |
| FreeBSD:15:latest | 0.004 | 0.004 | n/a | 0.004 | 0.004 |
| FreeBSD:15:quarterly | 0.004 | 0.004 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.004 | 0.004 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-Class-Tiny>=0: devel/p5-Class-Tiny
Runtime 1
p5-Class-Tiny>=0: devel/p5-Class-Tiny
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
| File | Size | SHA256 |
|---|---|---|
| failures-0.004.tar.gz | 19646 | fd2ca702402f22f5185b12942b5079bf95ad21cde3b97a7cf2e1919147463270 |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.