Added docs to Catalyst::Exception
Christian Hansen [Tue, 14 Jun 2005 16:06:48 +0000 (16:06 +0000)]
lib/Catalyst/Engine/HTTP/Daemon.pm
lib/Catalyst/Exception.pm

index aeaeea5..00daf22 100644 (file)
@@ -98,7 +98,7 @@ sub run {
     unless ( defined $daemon ) {
 
         Catalyst::Exception->throw(
-            message =>  qq/Failed to create daemon. Reason: '$!'/
+            message => qq/Failed to create daemon. Reason: '$!'/
         );
     }
 
index fbb75e4..ade1a46 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;
 
@@ -30,7 +31,11 @@ This is the Catalyst Exception class.
 
 =over 4
 
-=item throw($message)
+=item throw( $message )
+
+=item throw( message => $message )
+
+=item throw( error => $error )
 
 Throws a fatal exception.