org.jboss.aop.advice
Class NoMatchingAdviceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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:
- add a valid advice method if there is no advice method with the specified
name;
- change an existing advice method in order to make it suitable for the
problematic joinpoint;
- add an overloaded advice method that is suitable for the problematic
joinpoint.
- Author:
- Flavia Rainone
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NoMatchingAdviceException
public NoMatchingAdviceException(AdviceMethodProperties adviceProperties,
AdviceType adviceType,
String message)
- Constructor.
- Parameters:
adviceProperties
- properties of the queried adviceadviceType
- the type of the queried advicemessage
- message explaining why no matching advice was found
NoMatchingAdviceException
public NoMatchingAdviceException(Class<?> aspectClass,
String adviceName)
- Constructor.
- Parameters:
adviceProperties
- properties of the queried adviceadviceType
- the type of the queried advicemessage
- message explaining why no matching advice was found
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.