org.apache.beehive.netui.pageflow
Class PageFlowManagedObjectException

Object
  extended by Throwable
      extended by Exception
          extended by RuntimeException
              extended by PageFlowManagedObjectException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ControlFieldInitializationException, PageFlowException

public abstract class PageFlowManagedObjectException
extends RuntimeException

Base class for exceptions related to Page Flow managed objects.

See Also:
PageFlowManagedObject, Serialized Form

Constructor Summary
protected PageFlowManagedObjectException(PageFlowManagedObject object)
           
protected PageFlowManagedObjectException(PageFlowManagedObject object, Throwable rootCause)
           
 
Method Summary
 String getLocalizedMessage()
           
 PageFlowManagedObject getManagedObject()
          Get the related PageFlowManagedObject.
 String getMessage()
           
protected abstract  Object[] getMessageArgs()
           
protected abstract  String[] getMessageParts()
           
protected  void init(PageFlowManagedObject object)
           
 void printError(PrintWriter writer)
          Print a formatted message.
 void sendError(ServletRequest request, ServletResponse response)
          Handle the error by writing a message to the response.
protected  void setManagedObject(PageFlowManagedObject managedObject)
          Set the related PageFlowManagedObject.
 
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

PageFlowManagedObjectException

protected PageFlowManagedObjectException(PageFlowManagedObject object)

PageFlowManagedObjectException

protected PageFlowManagedObjectException(PageFlowManagedObject object,
                                         Throwable rootCause)
Method Detail

init

protected void init(PageFlowManagedObject object)

getManagedObject

public PageFlowManagedObject getManagedObject()
Get the related PageFlowManagedObject.

Returns:
the PageFlowManagedObject associated with this exception.

setManagedObject

protected void setManagedObject(PageFlowManagedObject managedObject)
Set the related PageFlowManagedObject.

Parameters:
managedObject - the PageFlowManagedObject associated with this exception.

sendError

public void sendError(ServletRequest request,
                      ServletResponse response)
               throws IOException
Handle the error by writing a message to the response.

Parameters:
request - the current HttpServletRequest
response - the current HttpServletResponse
Throws:
IOException

printError

public void printError(PrintWriter writer)
Print a formatted message.

Parameters:
writer - a writer to which to print the formatted message.

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getMessageArgs

protected abstract Object[] getMessageArgs()

getMessageParts

protected abstract String[] getMessageParts()