X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FException.pm;h=ee85e1e0907fc84c0dce7a6885c5dd66229a2dcc;hp=02610a472abfc9b90556f3b634a68e64dcfd2069;hb=e8b9f2a92084b3b9dab6b2b879900481b8548b3b;hpb=6323fda2e7ace0fc0aa06305c674957cedc6d025 diff --git a/lib/Catalyst/Exception.pm b/lib/Catalyst/Exception.pm index 02610a4..ee85e1e 100644 --- a/lib/Catalyst/Exception.pm +++ b/lib/Catalyst/Exception.pm @@ -1,10 +1,15 @@ package Catalyst::Exception; -# XXX: See bottom of file for Exception implementation +use strict; +use vars qw[@ISA $CATALYST_EXCEPTION_CLASS]; + +BEGIN { + push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' ); +} package Catalyst::Exception::Base; -use Moose; +use strict; use Carp (); =head1 NAME @@ -44,10 +49,6 @@ sub throw { Carp::croak($message); } -=head2 meta - -Provided by Moose - =head1 AUTHOR Sebastian Riedel, C @@ -60,13 +61,4 @@ it under the same terms as Perl itself. =cut -package Catalyst::Exception; - -use Moose; -use vars qw[$CATALYST_EXCEPTION_CLASS]; - -BEGIN { - extends($CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base'); -} - 1;