org.codehaus.dimple
Class InvalidReturnTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codehaus.dimple.InvalidReturnTypeException
All Implemented Interfaces:
java.io.Serializable

public class InvalidReturnTypeException
extends java.lang.RuntimeException

This exception indicates that a method is used to implement a target method but the return type is not compatible.

Author:
Ben Yu Dec 17, 2006 9:20:06 PM
See Also:
Serialized Form

Constructor Summary
InvalidReturnTypeException(java.lang.reflect.Method implementedMethod, java.lang.reflect.Method implementingMethod)
          Create an InvalidReturnTypeException instance.
InvalidReturnTypeException(java.lang.reflect.Method implementedMethod, java.lang.reflect.Method implementingMethod, java.lang.String message)
          Create an InvalidReturnTypeException instance.
 
Method Summary
 java.lang.reflect.Method getImplementedMethod()
          Get the method that we are trying to implement.
 java.lang.reflect.Method getImplementingMethod()
          Get the method used to implement the target method.
 
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

InvalidReturnTypeException

public InvalidReturnTypeException(java.lang.reflect.Method implementedMethod,
                                  java.lang.reflect.Method implementingMethod)
Create an InvalidReturnTypeException instance.

Parameters:
implementedMethod - the method that is being implemented.
implementingMethod - the method used to implement the target method.

InvalidReturnTypeException

public InvalidReturnTypeException(java.lang.reflect.Method implementedMethod,
                                  java.lang.reflect.Method implementingMethod,
                                  java.lang.String message)
Create an InvalidReturnTypeException instance.

Parameters:
implementedMethod - the method that is being implemented.
implementingMethod - the method used to implement the target method.
message - the error message.
Method Detail

getImplementedMethod

public java.lang.reflect.Method getImplementedMethod()
Get the method that we are trying to implement.


getImplementingMethod

public java.lang.reflect.Method getImplementingMethod()
Get the method used to implement the target method.