/**************************************************************************************
 * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved.                 *
 * http://aspectwerkz.codehaus.org                                                    *
 * ---------------------------------------------------------------------------------- *
 * The software in this package is published under the terms of the QPL license       *
 * a copy of which has been included with this distribution in the license.txt file.  *
 **************************************************************************************/
package examples.attribdef.exception;

/**
 * @author <a href="mailto:jboner@codehaus.org">Jonas Bonér</a>
 */
public class Target {

    private String method() throws Exception {
        throw new Exception("exception message");
    }

    public static void main(String[] args) {
        Target target = new Target();
        try {
            String result = target.method();
            System.out.println("result = " + result);
        }
        catch (Exception e) {
            System.out.println("should not be reached");
        }
    }
}
