X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FException.pm;h=02610a472abfc9b90556f3b634a68e64dcfd2069;hb=b6d4ee6e9d0c627982cd2da23702ee900a1b1796;hp=fc43cd843ba6e0070a2fba4937b5960833cc6ee2;hpb=b5ecfcf07b8ffe7e9984f0279c8781ce51c6ac6a;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Exception.pm b/lib/Catalyst/Exception.pm index fc43cd8..02610a4 100644 --- a/lib/Catalyst/Exception.pm +++ b/lib/Catalyst/Exception.pm @@ -1,16 +1,10 @@ package Catalyst::Exception; -use strict; -use vars qw[@ISA $CATALYST_EXCEPTION_CLASS]; -use UNIVERSAL::require; - -BEGIN { - push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' ); -} +# XXX: See bottom of file for Exception implementation package Catalyst::Exception::Base; -use strict; +use Moose; use Carp (); =head1 NAME @@ -50,6 +44,10 @@ sub throw { Carp::croak($message); } +=head2 meta + +Provided by Moose + =head1 AUTHOR Sebastian Riedel, C @@ -62,4 +60,13 @@ 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;