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


Manual Reference Pages  -  SERVLET::SERVLETEXCEPTION (3)

.ds Aq ’

NAME

Servlet::ServletException - general servlet exception

CONTENTS

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.

<B>Parameters:B>
$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
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SERVLET::SERVLETEXCEPTION (3) 2001-07-13

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