com.arsdigita.bebop
Class FormProcessException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.servlet.ServletException
com.arsdigita.bebop.FormProcessException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- FormValidationException
- public class FormProcessException
- extends javax.servlet.ServletException
This class represents exceptions that occur within the processing
methods of any of the form event listeners. Typically the code
will catch specific exceptions such as SQLException
and rethrow them as instances of this class to pass the message to
the controller in a standard fashion.
Since this class is a subclass of ServletException
,
servlets that do form processing within a doPost
or
doGet
methods do not need to explicitly catch
instances of this class. However, they may wish to do so for
special error reporting to the user, or to notify the webmaster via
e-mail of the problem.
- See Also:
- Serialized Form
Methods inherited from class javax.servlet.ServletException |
getRootCause |
versionId
public static final String versionId
- See Also:
- Constant Field Values
FormProcessException
public FormProcessException(String message)
FormProcessException
public FormProcessException(String message,
Throwable rootCause)
FormProcessException
public FormProcessException(Throwable rootCause)
printStackTrace
public void printStackTrace()
- In addition to printing the stack trace for this exception, also prints
the stack trace for the root cause, if any. This is a workaround for
those implementations of
ServletException
that don't implement
printStackTrace
correctly. If you happen to use an
implementation that does, the stack trace for the root cause may be
printed twice, which is not that big of a deal in the grand scheme of
things.
printStackTrace
public void printStackTrace(PrintStream s)
- See Also:
printStackTrace()
printStackTrace
public void printStackTrace(PrintWriter s)
- See Also:
printStackTrace()
getMessages
public String getMessages()
Returns the concatenation of Throwable.getMessage()
and ServletException.getRootCause()
.getMessage()
.
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC