public class AmbiguousTypeException extends RuntimeException
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.
Constructor and Description |
---|
AmbiguousTypeException(String message) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AmbiguousTypeException(String message)