com.arsdigita.bebop
Class FormProcessException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.servlet.ServletException
              extended bycom.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

Field Summary
static String versionId
           
 
Constructor Summary
FormProcessException(String message)
           
FormProcessException(String message, Throwable rootCause)
           
FormProcessException(Throwable rootCause)
           
 
Method Summary
 String getMessages()
          Returns the concatenation of Throwable.getMessage() and ServletException.getRootCause().getMessage().
 void printStackTrace()
          In addition to printing the stack trace for this exception, also prints the stack trace for the root cause, if any.
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
Methods inherited from class javax.servlet.ServletException
getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

FormProcessException

public FormProcessException(String message)

FormProcessException

public FormProcessException(String message,
                            Throwable rootCause)

FormProcessException

public FormProcessException(Throwable rootCause)
Method Detail

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 21 2004:2337 UTC