Class ReductionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.microbean.bean.BeanException
org.microbean.bean.ReductionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AmbiguousReductionException,UnsatisfiedReductionException
public sealed class ReductionException
extends BeanException
permits AmbiguousReductionException, UnsatisfiedReductionException
A
BeanException concerning problematic reductions.- Author:
- Laird Nelson
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReductionException(Object criteria, String message, Throwable cause) Creates a newReductionException. -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectcriteria()Returns thisReductionException's criteria object, which may benull.toString()Returns aStringreprsentation of thisReductionException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ReductionException
Creates a newReductionException.- Parameters:
criteria- anObjectrepresenting reduction criteria; may benullmessage- a detail message; may benullcause- aThrowablethat caused thisReductionExceptionto be created; may benull
-
-
Method Details
-
criteria
Returns thisReductionException's criteria object, which may benull.- Returns:
- this
ReductionException's criteria object, which may benull
-
toString
Returns aStringreprsentation of thisReductionException.- Overrides:
toStringin classThrowable- Returns:
- a
Stringreprsentation of thisReductionException; nevernull
-