What do folks think about allowing an error-handling runmode within
CGI::Application. Do something like:
sub setup
{
my $self = shift;
....
$self->error_mode( 'error_in_page' );
....
$self->SUPER::setup( @_ );
}
Then, within C::A::run(), eval around the call to $rmeth and, if $@ is
set, set $body equal to the result of a call to $self->error_mode. If
that sets $@, then continue as it happens today.
Rob
CONFIDENTIALITY NOTICE: The information in this electronic transmission and any
documents accompanying it may contain confidential information belonging to the
sender, which is legally privileged. The information is intended only for the use of
the individual or entities named above. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution or the taking of any
action in reliance on the contents of this information is strictly prohibited. If you
have received this transmission in error, please destroy the message in its entirety.
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[EMAIL PROTECTED]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]