1 /* 2 * Copyright the original author or authors. 3 * 4 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.mozilla.org/MPL/MPL-1.1.html 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 import org.as2lib.aop.JoinPoint; 18 import org.as2lib.aop.Advice; 19 20 /** 21 * {@code AfterThrowingAdvice} is invoked after a join point, this advice has been 22 * woven-into, has been invoked and threw an exception. 23 * 24 * @author Simon Wacker 25 * @see AfterAdvice 26 * @see AfterReturningAdvice 27 * @see <a href="http://www.simonwacker.com/blog/archives/000066.php">Advice</a> 28 */ 29 interface org.as2lib.aop.advice.AfterThrowingAdvice extends Advice { 30 31 /** 32 * Executes the actions that shall take place after a specific join point threw 33 * an exception. 34 * 35 * <p>If you use the proxy returned by the {@link AbstractAfterThrowingAdvice#getProxy} 36 * method to overwrite the actual join point, this method is invoked after the 37 * procession of the given {@code joinPoint} resulted in an exception. 38 * 39 * @param joinPoint the join point this advice was woven into 40 * @param throwable the throwable thrown by the given {@code joinPoint} 41 */ 42 public function execute(joinPoint:JoinPoint, throwable):Void; 43 44 }