View Javadoc
1 /* 2 * Angkor Web Framework 3 * 4 * Distributable under LGPL license. 5 * See terms of license at gnu.org. 6 */ 7 package com.tirsen.angkor.process; 8 9 import com.tirsen.angkor.Application; 10 11 /*** 12 * TODO document ErrorValve 13 * 14 * <!-- $Id: ErrorValve.java,v 1.1 2002/10/13 13:37:26 tirsen Exp $ --> 15 * 16 * @author $Author: tirsen $ 17 * @version $Revision: 1.1 $ 18 */ 19 public class ErrorValve implements Valve 20 { 21 public void execute(ExecuteContext exec) 22 { 23 try 24 { 25 exec.executeNext(); 26 } 27 catch (Exception e) 28 { 29 ((Application) exec.getAttribute(ExecuteContext.ApplicationAttribute)).handleError(e); 30 } 31 } 32 }

This page was automatically generated by Maven