Class InvalidAdviceException

  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:

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.

Flavia Rainone
See Also:
Serialized Form

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


public InvalidAdviceException(String message)

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.