Don't run the moose controller test if Moose isn't available
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception.pm
index fbb75e4..14cf555 100644 (file)
@@ -1,12 +1,12 @@
 package Catalyst::Exception;
 
-BEGIN { 
-    push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' );
-}
-
 use strict;
 use vars qw[@ISA $CATALYST_EXCEPTION_CLASS];
 
+BEGIN {
+    push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' );
+}
+
 package Catalyst::Exception::Base;
 
 use strict;
@@ -28,9 +28,11 @@ This is the Catalyst Exception class.
 
 =head1 METHODS
 
-=over 4
+=head2 throw( $message )
 
-=item throw($message)
+=head2 throw( message => $message )
+
+=head2 throw( error => $error )
 
 Throws a fatal exception.
 
@@ -47,12 +49,9 @@ sub throw {
     Carp::croak($message);
 }
 
-=back
-
-=head1 AUTHOR
+=head1 AUTHORS
 
-Sebastian Riedel, C<sri@cpan.org>
-Christian Hansen, C<ch@ngmedia.com>
+Catalyst Contributors, see Catalyst.pm
 
 =head1 COPYRIGHT