net.sf.tacos.ajax.impl
Class AjaxExceptionPresenter

java.lang.Object
  extended by net.sf.tacos.ajax.impl.AjaxExceptionPresenter
All Implemented Interfaces:
org.apache.tapestry.error.ExceptionPresenter

public class AjaxExceptionPresenter
extends Object
implements org.apache.tapestry.error.ExceptionPresenter

Implements the ExceptionPresenter to present the exception that happened when doing a Ajax request.

Author:
Felix Sun

Constructor Summary
AjaxExceptionPresenter()
           
 
Method Summary
 void presentException(org.apache.tapestry.IRequestCycle cycle, Throwable cause)
          
 void setAjaxWebRequest(AjaxWebRequest ajaxWebRequest)
          injected set method for ajaxWebRequest.
 void setExceptionPageName(String exceptionPageName)
          injected set method for ExceptionPageName.
 void setWriteCause(boolean writeCause)
          Is write throwable to page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxExceptionPresenter

public AjaxExceptionPresenter()
Method Detail

presentException

public void presentException(org.apache.tapestry.IRequestCycle cycle,
                             Throwable cause)

Specified by:
presentException in interface org.apache.tapestry.error.ExceptionPresenter

setAjaxWebRequest

public void setAjaxWebRequest(AjaxWebRequest ajaxWebRequest)
injected set method for ajaxWebRequest.

Parameters:
ajaxWebRequest -

setExceptionPageName

public void setExceptionPageName(String exceptionPageName)
injected set method for ExceptionPageName.

Parameters:
exceptionPageName -

setWriteCause

public void setWriteCause(boolean writeCause)
Is write throwable to page. Normal Exception need write but StaleSessionException doesn't.

Parameters:
writeCause -