org.springframework.aop.aspectj.annotation
public class: NotAnAtAspectException [javadoc |
source]
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.aop.framework.AopConfigException
org.springframework.aop.aspectj.annotation.NotAnAtAspectException
All Implemented Interfaces:
Serializable
Extension of AopConfigException thrown when trying to perform
an advisor generation operation on a class that is not an
AspectJ annotation-style aspect.
- author:
Rod - Johnson
- since:
2.0 -
| Constructor: |
public NotAnAtAspectException(Class nonAspectClass) {
super(nonAspectClass.getName() + " is not an @AspectJ aspect");
this.nonAspectClass = nonAspectClass;
}
Create a new NotAnAtAspectException for the given class. Parameters:
nonAspectClass - the offending class
|
| Method from org.springframework.aop.aspectj.annotation.NotAnAtAspectException Summary: |
|---|
|
getNonAspectClass |
| Methods from java.lang.Throwable: |
|---|
|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Method from org.springframework.aop.aspectj.annotation.NotAnAtAspectException Detail: |
public Class getNonAspectClass() {
return this.nonAspectClass;
}
Returns the offending class. |