X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=32aea5709f08eba01fff1be4f15696d670ea1769;hb=65e90e1c95aa917c16ae65e231fa2be3f5862f0f;hp=8d8000b3047f17ccb0c5c5ad962ccc7ef3c50286;hpb=9c86666a0171945d0b543cfb81510621fc42d6af;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 8d8000b..32aea57 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -127,7 +127,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); __PACKAGE__->_encode_check(Encode::FB_CROAK | Encode::LEAVE_SRC); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.90076'; +our $VERSION = '5.90077'; sub import { my ( $class, @arguments ) = @_; @@ -1776,6 +1776,7 @@ sub execute { if ( my $error = $@ ) { #rethow if this can be handled by middleware if( + !$c->config->{always_catch_http_exceptions} && blessed $error && ( $error->can('as_psgi') || ( @@ -1965,6 +1966,7 @@ sub finalize_error { } else { my ($error) = @{$c->error}; if( + !$c->config->{always_catch_http_exceptions} && blessed $error && ($error->can('as_psgi') || $error->can('code')) ) { @@ -2110,6 +2112,7 @@ sub handle_request { } catch { #rethow if this can be handled by middleware if( + !$class->config->{always_catch_http_exceptions} && blessed($_) && ( $_->can('as_psgi') || ( @@ -3506,6 +3509,13 @@ There are a number of 'base' config variables which can be set: =item * +C - As of version 5.90060 Catalyst +rethrows errors conforming to the interface described by +L and lets the middleware deal with it. +Set true to get the deprecated behaviour and have Catakyst catch HTTP exceptions. + +=item * + C - The default model picked if you say C<< $c->model >>. See L<< /$c->model($name) >>. =item *