reverting back to when tests pass. applying changes one by one to find what failed
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception.pm
index 02610a4..ee85e1e 100644 (file)
@@ -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<sri@cpan.org>
@@ -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;