org.objectweb.jac.core.rtti
Class InvalidDelegateException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.jac.core.rtti.InvalidDelegateException
All Implemented Interfaces:
Serializable

public class InvalidDelegateException
extends Exception

This exception is thrown when the user tries to construct a new meta item that is not matching the java.lang.reflect element it delegates to.

Author:
Laurent Martelli
See Also:
Serialized Form

Constructor Summary
InvalidDelegateException(Object delegate, String message)
           
 
Method Summary
 Object getDelegate()
           
 
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

InvalidDelegateException

public InvalidDelegateException(Object delegate,
                                String message)
Parameters:
delegate - the delegate that caused the exception
message - a message explaining the error
Method Detail

getDelegate

public Object getDelegate()