Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Servlet::ServletExceptUser3Contributed Perl DocumeServlet::ServletException(3)

NAME
       Servlet::ServletException - general servlet exception

SYNOPSIS
	 package My::Servlet;

	 use base qw(Servlet::GenericServlet);
	 use Servlet::ServletException ();

	 sub service {

	     # ...

	     eval {
		 # ...
	     };

	     if	($@) {
		 Servlet::ServletException->throw('something broke',
						  root => $@);
	     };

	     # ...

	 }

DESCRIPTION
       Defines a general exception a servlet can throw when it encounters
       difficulty.

METHODS
       new($msg, $root)
	   Constructs a	new servlet exception. Optional	arguments include an
	   error message and the "root cause" exception	that was encountered
	   by the servlet.

	   Parameters:

	   $msg
	       the error message

	   $root
	       the exception that is the root cause of this exception

       getRootCause()
	   Returns the exception that caused this servlet exception.

SEE ALSO
       Servlet::Util::Exception

AUTHOR
       Brian Moseley, bcm@maz.org

perl v5.24.1			  2001-07-13	  Servlet::ServletException(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Servlet::ServletException&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help