org.picocontainer.defaults
Class AssignabilityRegistrationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.picocontainer.PicoException
                  extended byorg.picocontainer.PicoRegistrationException
                      extended byorg.picocontainer.defaults.AssignabilityRegistrationException
All Implemented Interfaces:
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(Class type, Class clazz)
          Construct an exception with the type and the unassignable class.
 
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(Class type,
                                          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


Copyright © 2003-2004 Codehaus. All Rights Reserved.