org.picocontainer.defaults
Class AssignabilityRegistrationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.picocontainer.PicoException
                  extended by org.picocontainer.PicoRegistrationException
                      extended by org.picocontainer.defaults.AssignabilityRegistrationException
All Implemented Interfaces:
java.io.Serializable

public class AssignabilityRegistrationException
extends PicoRegistrationException

A subclass of PicoRegistrationException that is thrown during component registration if the component's key is a type and the implementation is not assignable to.

Since:
1.0
Author:
Paul Hammant, Aslak Hellesøy, Jon Tirsén
See Also:
Serialized Form

Constructor Summary
AssignabilityRegistrationException(java.lang.Class type, java.lang.Class clazz)
          Construct an exception with the type and the unassignable class.
 
Method Summary
 
Methods inherited from class org.picocontainer.PicoException
getCause, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignabilityRegistrationException

public AssignabilityRegistrationException(java.lang.Class type,
                                          java.lang.Class clazz)
Construct an exception with the type and the unassignable class.

Parameters:
type - the type used as component key
clazz - the unassignable implementation class