站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

PortletModeException - JBOSS Portal 2.6 API 英文版文档


javax.portlet
Class PortletModeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.portlet.PortletException
              extended byjavax.portlet.PortletModeException
All Implemented Interfaces:
java.io.Serializable

public class PortletModeException
extends PortletException

The PortletModeException is thrown when a portlet tries to use or set a portlet mode that is not supported by the current runtime environment or the portlet. s *

Version:
$Revision: 5441 $
Author:
Julien Viet
See Also:
Serialized Form

Field Summary
private  PortletMode mode
           
private static long serialVersionUID
          The serialVersionUID
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
PortletModeException(java.lang.String text, PortletMode mode)
          Constructs a new portlet mode exception with the given text and the portlet mode that caused this exception.
PortletModeException(java.lang.String text, java.lang.Throwable cause, PortletMode mode)
          Constructs a new portlet mode exception when the portlet needs to do the following: throw an exception include a message about the "root cause" that interfered with its normal operation include a description message include the portlet mode that caused this exception
PortletModeException(java.lang.Throwable cause, PortletMode mode)
          Constructs a new portlet mode exception when the portlet needs to throw an exception.
 
Method Summary
 PortletMode getMode()
          Returns the unsupported portlet mode causing this exception.
private  void readObject(java.io.ObjectInputStream in)
           
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
The serialVersionUID

See Also:
Constant Field Values

mode

private transient PortletMode mode
Constructor Detail

PortletModeException

public PortletModeException(java.lang.String text,
                            PortletMode mode)
Constructs a new portlet mode exception with the given text and the portlet mode that caused this exception. The portlet container may use the text and portlet mode write it to a log.

Parameters:
text - the exception text
mode - the mode causing the exception

PortletModeException

public PortletModeException(java.lang.String text,
                            java.lang.Throwable cause,
                            PortletMode mode)
Constructs a new portlet mode exception when the portlet needs to do the following:
    throw an exception
  • include a message about the "root cause" that interfered with its normal operation
  • include a description message
  • include the portlet mode that caused this exception

Parameters:
text - the exception text
cause - the root cause
mode - the mode causing the exception

PortletModeException

public PortletModeException(java.lang.Throwable cause,
                            PortletMode mode)
Constructs a new portlet mode exception when the portlet needs to throw an exception. The exception message is based on the localized message of the underlying exception and the portlet mode that caused this exception.

Parameters:
cause - the root cause
mode - the mode causing the exception
Method Detail

getMode

public PortletMode getMode()
Returns the unsupported portlet mode causing this exception.

Returns:
the portlet mode that caused this exception

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException