1 /***************************************************************************** 2 * Copyright (C) Codehaus.org. All rights reserved. * 3 * ------------------------------------------------------------------------- * 4 * The software in this package is published under the terms of the BSD * 5 * style license a copy of which has been included with this distribution in * 6 * the LICENSE.txt file. * 7 *****************************************************************************/ 8 /* 9 * Created on Mar 17, 2005 10 * 11 * Author Michelle Lei 12 * ZBS 13 */ 14 package jfun.yan.lifecycle; 15 16 /** 17 * This interface wraps up the strategy to handle exceptions. 18 * <p> 19 * Codehaus.org. 20 * 21 * @author Michelle Lei 22 * 23 */ 24 public interface ExceptionHandler extends java.io.Serializable { 25 /** 26 * handle an exception. 27 * @param th the exception object. 28 */ 29 public void handle(Throwable th) 30 throws Throwable; 31 } 32