Added COMPONENT() and ACCEPT_CONTEXT() support
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Exception.pm
index fbb75e4..fc43cd8 100644 (file)
@@ -1,11 +1,12 @@
 package Catalyst::Exception;
 
-BEGIN { 
-    push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' );
-}
-
 use strict;
 use vars qw[@ISA $CATALYST_EXCEPTION_CLASS];
+use UNIVERSAL::require;
+
+BEGIN {
+    push( @ISA, $CATALYST_EXCEPTION_CLASS || 'Catalyst::Exception::Base' );
+}
 
 package Catalyst::Exception::Base;
 
@@ -28,9 +29,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 +50,6 @@ sub throw {
     Carp::croak($message);
 }
 
-=back
-
 =head1 AUTHOR
 
 Sebastian Riedel, C<sri@cpan.org>