org.apache.tapestry.portlet
Class PortletExceptionPresenter

java.lang.Object
  extended byorg.apache.tapestry.portlet.PortletExceptionPresenter
All Implemented Interfaces:
org.apache.tapestry.error.ExceptionPresenter

public class PortletExceptionPresenter
extends java.lang.Object
implements org.apache.tapestry.error.ExceptionPresenter

Service used to present a runtime exception to the user. This is very tricky in the Portlet world because of the split between the action and render requests (much more likely to get an error during the action request than during the render request, but both are possible).

During an action request, this code will render the HTML markup for the exception into a buffer that is stored as persistent attribute in the portal session.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
PortletExceptionPresenter()
           
 
Method Summary
 void presentException(org.apache.tapestry.IRequestCycle cycle, java.lang.Throwable cause)
           
 void setGlobals(PortletRequestGlobals globals)
           
 void setMarkupWriterSource(org.apache.tapestry.markup.MarkupWriterSource markupWriterSource)
           
 void setRenderStrategy(org.apache.tapestry.describe.RenderStrategy renderStrategy)
           
 void setRequest(org.apache.tapestry.web.WebRequest request)
           
 void setRequestExceptionReporter(org.apache.tapestry.error.RequestExceptionReporter requestExceptionReporter)
           
 void setResponse(org.apache.tapestry.web.WebResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletExceptionPresenter

public PortletExceptionPresenter()
Method Detail

presentException

public void presentException(org.apache.tapestry.IRequestCycle cycle,
                             java.lang.Throwable cause)
Specified by:
presentException in interface org.apache.tapestry.error.ExceptionPresenter

setGlobals

public void setGlobals(PortletRequestGlobals globals)

setRenderStrategy

public void setRenderStrategy(org.apache.tapestry.describe.RenderStrategy renderStrategy)

setRequest

public void setRequest(org.apache.tapestry.web.WebRequest request)

setRequestExceptionReporter

public void setRequestExceptionReporter(org.apache.tapestry.error.RequestExceptionReporter requestExceptionReporter)

setResponse

public void setResponse(org.apache.tapestry.web.WebResponse response)

setMarkupWriterSource

public void setMarkupWriterSource(org.apache.tapestry.markup.MarkupWriterSource markupWriterSource)