/**
 * 
 */
package org.ajax4jsf.portlet;

import javax.faces.context.FacesContext;
import javax.portlet.faces.BridgeException;

import org.ajax4jsf.portlet.application.PortletViewState;

/**
 * @author asmirnov
 *
 */
public class ExceptionHandlerImpl implements ExceptionHandler {

	/* (non-Javadoc)
	 * @see org.ajax4jsf.portlet.ExceptionHandler#processActionException(javax.faces.context.FacesContext, org.ajax4jsf.portlet.application.PortletViewState, java.lang.Exception)
	 */
	public void processActionException(FacesContext context,
			PortletViewState windowState, Exception e) throws BridgeException {
		throw new BridgeException("Error processing action lifecycle",e);

	}

	/* (non-Javadoc)
	 * @see org.ajax4jsf.portlet.ExceptionHandler#processRenderException(javax.faces.context.FacesContext, org.ajax4jsf.portlet.application.PortletViewState, java.lang.Exception)
	 */
	public void processRenderException(FacesContext context,
			PortletViewState windowState, Exception e) throws BridgeException {
		throw new BridgeException("Error processing render lifecycle",e);
	}

}
