org.jboss.aop.advice
Class InvalidAdviceException

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

public class InvalidAdviceException
extends RuntimeException

Exception thrown when an advice method does not comply with one or more rules regardless of the joinpoint to be intercepted.

If your application is throwing this exception, the solution is to fix the advice method so that it follows the required rule.

Author:
Flavia Rainone
See Also:
Serialized Form

Constructor Summary
InvalidAdviceException(String message)
          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

InvalidAdviceException

public InvalidAdviceException(String message)
Constructor.

Parameters:
message - a message describing why the advice method is considered invalid. Message should specify clearly the rule that is broken, the advice method that is invalid, and its type (if the rule depends on the type).


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