Spring Framework

Class UnknownAdviceTypeException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by org.springframework.aop.framework.adapter.UnknownAdviceTypeException
All Implemented Interfaces:

public class UnknownAdviceTypeException
extends java.lang.IllegalArgumentException

Exception thrown when an attempt is made to use an unsupported Advisor or Advice type.

Rod Johnson, Juergen Hoeller
See Also:
Advice, Advisor, Serialized Form

Constructor Summary
UnknownAdviceTypeException(java.lang.Object advice)
          Create a new UnknownAdviceTypeException for the given advice object.
UnknownAdviceTypeException(java.lang.String message)
          Create a new UnknownAdviceTypeException with the given 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 UnknownAdviceTypeException(java.lang.Object advice)
Create a new UnknownAdviceTypeException for the given advice object. Will create a message text that says that the object is neither a subinterface of Advice nor an Advisor.

advice - the advice object of unknown type


public UnknownAdviceTypeException(java.lang.String message)
Create a new UnknownAdviceTypeException with the given message.

message - the message text

Spring Framework