org.qi4j.api.composite

## Class AmbiguousTypeException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.qi4j.api.composite.AmbiguousTypeException

- All Implemented Interfaces:
    Serializable

      public class AmbiguousTypeException
      extends RuntimeException

  This Exception is thrown when more than one Composite implements a MixinType that one tries to use to create a Composite instance from.

  For instance;

       public interface AbcComposite extends TransientComposite, Abc
       {}

       public interface DefComposite extends TransientComposite, Def
       {}

       public interface Abc
       {}

       public interface Def extends Abc
       {}

       TransientBuilder cb = factory.newTransientBuilder( Abc.class );

  In the code above, both the AbcComposite and DefComposite implement Abc, and therefore the `newTransientBuilder` method can not unambiguously figure out which one is intended.

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `AmbiguousTypeException(String message)`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### AmbiguousTypeException

          public AmbiguousTypeException(String message)