Import devel/p5-Exception-Class-TryCatch
Exception::Class::TryCatch provides syntactic sugar for use with Exception::Class using the familiar keywords try and catch. Its primary objective is to allow users to avoid dealing directly with $@ by ensuring that any exceptions caught in an eval are captured as Exception::Class objects, whether they were thrown objects to begin with or whether the error resulted from die. This means that users may immediately use isa and various Exception::Class methods to process the exception. From Peter Ezetta <protocall7 () gmail ! com> OK cwen@
This commit is contained in:
parent
16fa21ad86
commit
73b8231ed7
17
devel/p5-Exception-Class-TryCatch/Makefile
Normal file
17
devel/p5-Exception-Class-TryCatch/Makefile
Normal file
@ -0,0 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2019/08/25 22:42:28 afresh1 Exp $
|
||||
|
||||
COMMENT = syntactic try/catch sugar for use with Exception::Class
|
||||
|
||||
DISTNAME = Exception-Class-TryCatch-1.13
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
# Apache 2.0
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
MODULES = cpan
|
||||
RUN_DEPENDS = devel/p5-Exception-Class
|
||||
|
||||
PKG_ARCH = *
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Exception-Class-TryCatch/distinfo
Normal file
2
devel/p5-Exception-Class-TryCatch/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Exception-Class-TryCatch-1.13.tar.gz) = XgV3CgmlLH09kTnhCpN1cTPwmbhj0II8jkoCHff/pQI=
|
||||
SIZE (Exception-Class-TryCatch-1.13.tar.gz) = 20629
|
8
devel/p5-Exception-Class-TryCatch/pkg/DESCR
Normal file
8
devel/p5-Exception-Class-TryCatch/pkg/DESCR
Normal file
@ -0,0 +1,8 @@
|
||||
Exception::Class::TryCatch provides syntactic sugar for use with
|
||||
Exception::Class using the familiar keywords try and catch. Its
|
||||
primary objective is to allow users to avoid dealing directly with
|
||||
$@ by ensuring that any exceptions caught in an eval are captured
|
||||
as Exception::Class objects, whether they were thrown objects to
|
||||
begin with or whether the error resulted from die. This means that
|
||||
users may immediately use isa and various Exception::Class methods
|
||||
to process the exception.
|
3
devel/p5-Exception-Class-TryCatch/pkg/PLIST
Normal file
3
devel/p5-Exception-Class-TryCatch/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/08/25 22:42:28 afresh1 Exp $
|
||||
${P5SITE}/Exception/Class/TryCatch.pm
|
||||
@man man/man3p/Exception::Class::TryCatch.3p
|
Loading…
Reference in New Issue
Block a user