javax.enterprise.inject
Class AmbiguousResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
javax.enterprise.inject.InjectionException
javax.enterprise.inject.ResolutionException
javax.enterprise.inject.AmbiguousResolutionException
- All Implemented Interfaces:
- java.io.Serializable
public class AmbiguousResolutionException
- extends ResolutionException
When an injection Manager.getInstance
call cannot return a unique bean, it throws
this exception.
This ambiguity may occur when two subtypes match, e.g. BeanA
and BeanB
both implementing @Current BeanAPI
.
The ambiguity may also occur when using more than
one @BindingType
on the same
bean or when using the special @Any
bindings, for example:
- See Also:
- Serialized Form
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AmbiguousResolutionException
public AmbiguousResolutionException()
AmbiguousResolutionException
public AmbiguousResolutionException(java.lang.String message)
AmbiguousResolutionException
public AmbiguousResolutionException(java.lang.Throwable cause)
AmbiguousResolutionException
public AmbiguousResolutionException(java.lang.String message,
java.lang.Throwable cause)