Class AmbiguousResolutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.microbean.bean.BeanException
org.microbean.bean.ResolutionException
org.microbean.bean.AmbiguousResolutionException
- All Implemented Interfaces:
Serializable
A
ResolutionException indicating that many contextual instances could not be reduced to one.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousResolutionException(Object criteria, Collection<?> alternates, String message) Creates a newAmbiguousResolutionException. -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection<?> Returns the contextual instances that could not be reduced.Methods inherited from class ResolutionException
criteria, toStringMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AmbiguousResolutionException
Creates a newAmbiguousResolutionException.- Parameters:
criteria- the criteria by which a resolution was supposed to be effected; may benullalternates- the contextual instances that could not be reduced; may benullmessage- a detail message describing the exception; may benull
-
-
Method Details
-
alternates
Returns the contextual instances that could not be reduced.This method never returns
null.- Returns:
- a non-
null, immutableCollectionof contextual instances
-