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:
afresh1 2019-08-25 22:42:28 +00:00
parent 16fa21ad86
commit 73b8231ed7
4 changed files with 30 additions and 0 deletions

View 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>

View File

@ -0,0 +1,2 @@
SHA256 (Exception-Class-TryCatch-1.13.tar.gz) = XgV3CgmlLH09kTnhCpN1cTPwmbhj0II8jkoCHff/pQI=
SIZE (Exception-Class-TryCatch-1.13.tar.gz) = 20629

View 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.

View 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