org.apache.beehive.netui.pageflow
Class IllegalOutputFormTypeException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by PageFlowManagedObjectException
                  extended by PageFlowException
                      extended by IllegalOutputFormException
                          extended by IllegalOutputFormTypeException
All Implemented Interfaces:
Serializable

public class IllegalOutputFormTypeException
extends IllegalOutputFormException

Exception that occurs when the first output form for a Forward resolves to a @Jpf.Forward annotation whose outputFormBean or outputFormBeanType attribute demands a different form type.

See Also:
Forward.addOutputForm(java.lang.Object), Serialized Form

Constructor Summary
IllegalOutputFormTypeException(String forwardName, String actionName, FlowController flowController, String outputFormType, String requiredType)
           
 
Method Summary
protected  Object[] getMessageArgs()
           
 String[] getMessageParts()
           
 String getRequiredType()
          Get the name of the required form type.
 
Methods inherited from class IllegalOutputFormException
causeMayBeSessionExpiration, getForwardName, getOutputFormType, setForwardName, setOutputFormType
 
Methods inherited from class PageFlowException
getActionName, getFlowController, getFlowControllerURI, init
 
Methods inherited from class PageFlowManagedObjectException
getLocalizedMessage, getManagedObject, getMessage, init, printError, sendError, setManagedObject
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalOutputFormTypeException

public IllegalOutputFormTypeException(String forwardName,
                                      String actionName,
                                      FlowController flowController,
                                      String outputFormType,
                                      String requiredType)
Parameters:
forwardName - the name of the relevant Forward.
actionName - the name of the current action being run.
flowController - the current FlowController instance.
outputFormType - the type name of the relevant output form.
requiredType - the name of the required form type.
Method Detail

getRequiredType

public String getRequiredType()
Get the name of the required form type.

Returns:
a String that is the name of the required form type.

getMessageArgs

protected Object[] getMessageArgs()
Specified by:
getMessageArgs in class PageFlowManagedObjectException

getMessageParts

public String[] getMessageParts()
Specified by:
getMessageParts in class PageFlowManagedObjectException