The Spring Framework

org.springframework.aop.aspectj.annotation
Class NotAnAtAspectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.springframework.aop.framework.AopConfigException
                      extended by org.springframework.aop.aspectj.annotation.NotAnAtAspectException
All Implemented Interfaces:
Serializable

public class NotAnAtAspectException
extends AopConfigException

Extension of AopConfigException thrown when trying to perform an advisor generation operation on a class that is not an AspectJ annotation-style aspect.

Since:
2.0
Author:
Rod Johnson
See Also:
Serialized Form

Constructor Summary
NotAnAtAspectException(Class<?> nonAspectClass)
          Create a new NotAnAtAspectException for the given class.
 
Method Summary
 Class<?> getNonAspectClass()
          Returns the offending class.
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getCause, getMessage, getMostSpecificCause, getRootCause, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotAnAtAspectException

public NotAnAtAspectException(Class<?> nonAspectClass)
Create a new NotAnAtAspectException for the given class.

Parameters:
nonAspectClass - the offending class
Method Detail

getNonAspectClass

public Class<?> getNonAspectClass()
Returns the offending class.


The Spring Framework

Copyright © 2002-2007 The Spring Framework.