X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=d46395d05e02bdc03cd908161872dd9f2dfc0108;hb=61bef2384fe7e5bf9c3050c441ebde61088aa1c6;hp=7f6dbc5a88ea08e1c06234ad2555fe2824c6586d;hpb=124b7dd27bfad018d11f217a31c93d048ca9df6f;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 7f6dbc5..d46395d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -56,7 +56,7 @@ our $DETACH = "catalyst_detach\n"; require Module::Pluggable::Fast; # Helper script generation -our $CATALYST_SCRIPT_GEN = 14; +our $CATALYST_SCRIPT_GEN = 18; __PACKAGE__->mk_classdata($_) for qw/components arguments dispatcher engine log dispatcher_class @@ -289,7 +289,9 @@ sub detach { my $c = shift; $c->dispatcher->detach( $c, @_ ) } =item $c->error($arrayref) -Returns an arrayref containing error messages. +Returns an arrayref containing error messages. If Catalyst encounters an +error while processing a request, it stores the error in $c->error. This +method should not be used to store non-fatal error messages. my @error = @{ $c->error }; @@ -297,7 +299,8 @@ Add a new error. $c->error('Something bad happened'); -Clear errors. +Clear errors. You probably don't want to clear the errors unless you are +implementing a custom error screen. $c->error(0); @@ -1927,6 +1930,8 @@ David Kamholz David Naughton +Drew Taylor + Gary Ashton Jones Geoff Richards