You could do this in the handler under mod perl.
sub handler { my ($r) = @_; my $result = eval { $ah->handle_request($r); }; if (my $err = $@) { # log it to error log $r->log_error($err->as_line); ... email developers required info ... return 500; } return $result; } Ian Burrell wrote: >I am trying to sub-class HTML::Mason::Request to override the >_handle_error method. For live errors, we want to send back a simple >"it broke" page and email the error message to the developers. I >followed the subclassing documentation but am getting the following >error: > >The following parameter was passed in the call to >RTK::Util::Mason::EssentialsRequest->new() but was not listed in the >validation options: cgi_request > >I copied the 'new' function from the docs. > >use base 'HTML::Mason::Request'; > >sub new >{ > my $class = shift; > > $class->alter_superclass( $HTML::Mason::ApacheHandler::VERSION ? > 'HTML::Mason::Request::ApacheHandler' : > $HTML::Mason::CGIHandler::VERSION ? > 'HTML::Mason::Request::CGI' : > 'HTML::Mason::Request' ); > > my $self = $class->SUPER::new(@_); > > return $self; >} > > - Ian > > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users