jfun.yan
Class PropertyTypeMismatchException

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.PropertyTypeMismatchException
All Implemented Interfaces:
java.io.Serializable

public class PropertyTypeMismatchException
extends TypeMismatchException

Represents an exception where the type of the actual property value does not match the expected property type.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
PropertyTypeMismatchException(java.lang.Object ckey, java.lang.Class src, java.lang.Object lkey, java.lang.Class param_type, java.lang.Class arg_type)
          Create a PropertyTypeMismatchException object.
 
Method Summary
 java.lang.Object getComponentKey()
          Get the component key.
 java.lang.Object getPropertyKey()
          Get the property key.
 java.lang.Class getSource()
          To get the source of the exception.
 
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

PropertyTypeMismatchException

public PropertyTypeMismatchException(java.lang.Object ckey,
                                     java.lang.Class src,
                                     java.lang.Object lkey,
                                     java.lang.Class param_type,
                                     java.lang.Class arg_type)
Create a PropertyTypeMismatchException object.

Parameters:
ckey - the component key.
src - the source class that caused this property mismatch problem.
lkey - the property key.
param_type - the expected type.
arg_type - the type of the actual value.
Method Detail

getComponentKey

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

Returns:
the component key.

getPropertyKey

public java.lang.Object getPropertyKey()
Get the property key.

Returns:
the property key.

getSource

public java.lang.Class getSource()
To get the source of the exception.