Home » gridsphere-3.1-src » javax.portlet » [javadoc | source]
javax.portlet
public class: PortletException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.portlet.PortletException

All Implemented Interfaces:
    Serializable

Direct Known Subclasses:
    PortletSecurityException, WindowStateException, ValidatorException, UnavailableException, PortletModeException, ReadOnlyException

The PortletException class defines a general exception that a portlet can throw when it is unable to perform its operation successfully.
Constructor:
 public PortletException() 
 public PortletException(String text) 
    Constructs a new portlet exception with the given text. The portlet container may use the text write it to a log.
    Parameters:
    text - the exception text
 public PortletException(Throwable cause) 
    Constructs a new portlet exception when the portlet needs to throw an exception. The exception's message is based on the localized message of the underlying exception.
    Parameters:
    cause - the root cause
 public PortletException(String text,
    Throwable cause) 
    Constructs a new portlet exception when the portlet needs to do the following:
    • throw an exception
    • include the "root cause" exception
    • include a description message
    Parameters:
    text - the exception text
    cause - the root cause
Method from javax.portlet.PortletException Summary:
getCause,   printStackTrace,   printStackTrace,   printStackTrace
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.portlet.PortletException Detail:
 public Throwable getCause() 
    Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

    This implementation returns the cause that was supplied via one of the constructors requiring a Throwable.

 public  void printStackTrace() 
    Prints the stack trace of this exception to the standard error stream.
 public  void printStackTrace(PrintStream out) 
    Prints the stack trace of this exception to the specified print stream.
 public  void printStackTrace(PrintWriter out) 
    Prints the stack trace of this exception to the specified print writer.