01: /**************************************************************************************
02: * Copyright (c) Jonas BonŽr, Alexandre Vasseur. All rights reserved. *
03: * http://aspectwerkz.codehaus.org *
04: * ---------------------------------------------------------------------------------- *
05: * The software in this package is published under the terms of the LGPL license *
06: * a copy of which has been included with this distribution in the license.txt file. *
07: **************************************************************************************/package examples.exception;
08:
09: /**
10: * @author <a href="mailto:jboner@codehaus.org">Jonas BonŽr </a>
11: */
12: public class Target {
13:
14: Class c = ExceptionHandlingAspect.class;
15:
16: private void method() throws Exception {
17: throw new Exception("exception message");
18: }
19:
20: public static void main(String[] args) {
21: Target target = new Target();
22: try {
23: target.method();
24: } catch (Exception e) {
25: }
26: }
27: }
|