org.jdtaus.core.container
Class IllegalPropertyTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalStateException
                  extended by org.jdtaus.core.container.IllegalPropertyTypeException
All Implemented Interfaces:
Serializable

public class IllegalPropertyTypeException
extends IllegalStateException

Gets thrown for type collisions of inherited properties, implemented properties, or dependency properties.

Version:
$Id: IllegalPropertyTypeException.java 8044 2009-07-02 01:29:05Z schulte2005 $
Author:
Christian Schulte
See Also:
Serialized Form

Constructor Summary
IllegalPropertyTypeException(String name, Class type, Class expectedType)
          Creates a new instance of IllegalPropertyTypeException taking a property name and the illegal type.
 
Method Summary
 Class getExpectedType()
          Gets the expected type of the property.
 String getName()
          Gets the name of the property with illegal type.
 Class getType()
          Gets the illegal type of the property.
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllegalPropertyTypeException

public IllegalPropertyTypeException(String name,
                                    Class type,
                                    Class expectedType)
Creates a new instance of IllegalPropertyTypeException taking a property name and the illegal type.

Parameters:
name - the name of the property with illegal type.
type - the illegal type of the property with name name.
expectedType - the expected type of the property with name name.
Method Detail

getExpectedType

public Class getExpectedType()
Gets the expected type of the property.

Returns:
the expected type of the property.

getName

public String getName()
Gets the name of the property with illegal type.

Returns:
the name of the property with illegal type.

getType

public Class getType()
Gets the illegal type of the property.

Returns:
the illegal type of the property.


Copyright © 2005-2009 jDTAUS. All Rights Reserved.