org.jboss.aop.advice
Class NoMatchingAdviceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.jboss.aop.advice.NoMatchingAdviceException
All Implemented Interfaces:
Serializable

public class NoMatchingAdviceException
extends RuntimeException

Exception thrown when no advice suitable to intercept a specific joinpoint was found. This does not mean, however, that an advice is invalid or breaks a signature rule.

If your application is throwing this exception, you can either:

Author:
Flavia Rainone
See Also:
Serialized Form

Constructor Summary
NoMatchingAdviceException(AdviceMethodProperties adviceProperties, AdviceType adviceType, String message)
          Constructor.
NoMatchingAdviceException(Class<?> aspectClass, String adviceName)
          Constructor.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoMatchingAdviceException

public NoMatchingAdviceException(AdviceMethodProperties adviceProperties,
                                 AdviceType adviceType,
                                 String message)
Constructor.

Parameters:
adviceProperties - properties of the queried advice
adviceType - the type of the queried advice
message - message explaining why no matching advice was found

NoMatchingAdviceException

public NoMatchingAdviceException(Class<?> aspectClass,
                                 String adviceName)
Constructor.

Parameters:
adviceProperties - properties of the queried advice
adviceType - the type of the queried advice
message - message explaining why no matching advice was found


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.