document $c->detach with no args
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception.pm
index fbb75e4..ee85e1e 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,8 +49,6 @@ sub throw {
     Carp::croak($message);
 }
 
-=back
-
 =head1 AUTHOR
 
 Sebastian Riedel, C<sri@cpan.org>