Servlet::ServletException - general servlet exception
package My::Servlet;
use base qw(Servlet::GenericServlet); use Servlet::ServletException ();
sub service {
# ...
eval { # ... };
if ($@) { Servlet::ServletException->throw('something broke', root => $@); };
# ...
}
Defines a general exception a servlet can throw when it encounters difficulty.
Parameters:
getRootCause()
the Servlet::Util::Exception manpage
Brian Moseley, bcm@maz.org