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