GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Servlet::ServletException(3) User Contributed Perl Documentation Servlet::ServletException(3)

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.

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.

Servlet::Util::Exception

Brian Moseley, bcm@maz.org
2001-07-13 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.