java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.microbean.bean.BeanException
org.microbean.bean.ReductionException
org.microbean.bean.AmbiguousReductionException
- All Implemented Interfaces:
Serializable
A
ReductionException
indicating that many contextual instances could not be reduced to one.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorDescriptionAmbiguousReductionException
(Object criteria, Collection<?> alternates, String message) Creates a newAmbiguousReductionException
. -
Method Summary
Modifier and TypeMethodDescriptionfinal Collection
<?> Returns the contextual instances that could not be reduced.Methods inherited from class org.microbean.bean.ReductionException
criteria, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
AmbiguousReductionException
Creates a newAmbiguousReductionException
.- Parameters:
criteria
- the criteria by which a reduction was supposed to be effected; may benull
alternates
- the contextual instances that could not be reduced; may benull
message
- 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
, immutableCollection
of contextual instances
-