org.codehaus.dimple
Class InvalidReturnTypeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.