jfun.yan
Class ParameterTypeMismatchException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.yan.YanException
                  extended by jfun.yan.TypeMismatchException
                      extended by jfun.yan.ParameterTypeMismatchException
All Implemented Interfaces:
java.io.Serializable

public class ParameterTypeMismatchException
extends TypeMismatchException

Represents an exception when the type of the actual argument does not match the expected parameter type.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
ParameterTypeMismatchException(java.lang.Object ckey, Signature src, int num, java.lang.Class param_type, java.lang.Class arg_type)
          Create a ParameterTypeMismatchException object.
 
Method Summary
 java.lang.Object getComponentKey()
          Get the component key.
 int getOrdinalPosition()
          Get the ordinal position of the parameter starting from 0.
 Signature getSource()
          To get the signature of the method call that caused this error.
 
Methods inherited from class jfun.yan.TypeMismatchException
getActualType, getExpectedType
 
Methods inherited from class jfun.yan.YanException
clearResolutionTrace, getResolutionTrace, printResolutionTrace, printResolutionTrace, printResolutionTrace, printStackTrace, printStackTrace, push
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParameterTypeMismatchException

public ParameterTypeMismatchException(java.lang.Object ckey,
                                      Signature src,
                                      int num,
                                      java.lang.Class param_type,
                                      java.lang.Class arg_type)
Create a ParameterTypeMismatchException object.

Parameters:
ckey - the component key.
src - the signature of the method call that caused this.
num - the ordinal position of the parameter.
param_type - the expected parameter type.
arg_type - the type of the actual argument.
Method Detail

getComponentKey

public java.lang.Object getComponentKey()
Get the component key.

Returns:
the component key.

getOrdinalPosition

public int getOrdinalPosition()
Get the ordinal position of the parameter starting from 0.

Returns:
the ordinal position.

getSource

public Signature getSource()
To get the signature of the method call that caused this error.