1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

Every HTTP::Exception is a Exception::Class - Class. So the same

mechanisms apply as with Exception::Class-classes. In fact have a look
at Exception::Class' docs for more general information on exceptions
and Exception::Class::Base for information on what methods a caught
exception also has.

HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is
a number) subclasses. That means that HTTP::Exception->new(404)
returns a HTTP::Exception::404 object, which in turn is a
HTTP::Exception::Base - Object.

WWW: http://search.cpan.org/dist/HTTP-Exception/
This commit is contained in:
Jun Kuriyama 2010-11-22 02:33:54 +00:00
parent e16445a875
commit 41d233b422
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=264901
5 changed files with 61 additions and 0 deletions

View File

@ -1028,6 +1028,7 @@
SUBDIR += p5-HTTP-Daemon-SSL
SUBDIR += p5-HTTP-Engine
SUBDIR += p5-HTTP-Engine-Middleware
SUBDIR += p5-HTTP-Exception
SUBDIR += p5-HTTP-GHTTP
SUBDIR += p5-HTTP-HeaderParser-XS
SUBDIR += p5-HTTP-Headers-Fast

View File

@ -0,0 +1,33 @@
# New ports collection makefile for: HTTP::Exception
# Date created: 22 Nov 2010
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= HTTP-Exception
PORTVERSION= 0.03001
CATEGORIES= www perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension to throw HTTP-Errors as (Exception::Class-) Exceptions
RUN_DEPENDS= \
p5-Exception-Class>=1.29:${PORTSDIR}/devel/p5-Exception-Class \
p5-libwww>=5.817:${PORTSDIR}/www/p5-libwww
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= HTTP::Exception.3 \
HTTP::Exception::1XX.3 \
HTTP::Exception::2XX.3 \
HTTP::Exception::3XX.3 \
HTTP::Exception::4XX.3 \
HTTP::Exception::5XX.3 \
HTTP::Exception::Base.3 \
HTTP::Exception::Loader.3
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (HTTP-Exception-0.03001.tar.gz) = 3e112f4a59bdbb84e73a422a780e2c5ce3219b909484324a2ebca842d9d5f085
SIZE (HTTP-Exception-0.03001.tar.gz) = 20379

View File

@ -0,0 +1,12 @@
Every HTTP::Exception is a Exception::Class - Class. So the same
mechanisms apply as with Exception::Class-classes. In fact have a look
at Exception::Class' docs for more general information on exceptions
and Exception::Class::Base for information on what methods a caught
exception also has.
HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is
a number) subclasses. That means that HTTP::Exception->new(404)
returns a HTTP::Exception::404 object, which in turn is a
HTTP::Exception::Base - Object.
WWW: http://search.cpan.org/dist/HTTP-Exception/

View File

@ -0,0 +1,13 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Exception/.packlist
%%SITE_PERL%%/HTTP/Exception.pm
%%SITE_PERL%%/HTTP/Exception/1XX.pm
%%SITE_PERL%%/HTTP/Exception/2XX.pm
%%SITE_PERL%%/HTTP/Exception/3XX.pm
%%SITE_PERL%%/HTTP/Exception/4XX.pm
%%SITE_PERL%%/HTTP/Exception/5XX.pm
%%SITE_PERL%%/HTTP/Exception/Base.pm
%%SITE_PERL%%/HTTP/Exception/Loader.pm
@dirrm %%SITE_PERL%%/HTTP/Exception
@comment @dirrm %%SITE_PERL%%/HTTP
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP/Exception
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTTP