KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > aspectj > lang > reflect > NoSuchAdviceException


1 /* *******************************************************************
2  * Copyright (c) 2005 Contributors.
3  * All rights reserved.
4  * This program and the accompanying materials are made available
5  * under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution and is available at
7  * http://eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  * Adrian Colyer Initial implementation
11  * ******************************************************************/

12 package org.aspectj.lang.reflect;
13
14 /**
15  * Thrown when AjType.getDeclaredAdvice is called with an advice name and no matching
16  * advice declaration can be found.
17  */

18 public class NoSuchAdviceException extends Exception JavaDoc {
19
20     private static final long serialVersionUID = 3256444698657634352L;
21     private String JavaDoc name;
22     
23     public NoSuchAdviceException(String JavaDoc name) {
24         this.name = name;
25     }
26     
27     /**
28      * The advice name that could not be found.
29      */

30     public String JavaDoc getName() {
31         return name;
32     }
33
34 }
35
Popular Tags