Package nz.org.riskscape.engine.bind
Class NoBindingAvailableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
nz.org.riskscape.engine.RiskscapeException
nz.org.riskscape.engine.bind.NoBindingAvailableException
- All Implemented Interfaces:
Serializable
Thrown from BindingContext when a binding fails because no ParameterBinder is available to bind with the
given from and to
Used in preference to UnbindableParameterException. See BindingContext for info on the deprecation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoBindingAvailableException(Class<?> from, Class<?> to) NoBindingAvailableException(Problem problem, Class<?> from, Class<?> to) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>getFrom()Class<?>getTo()withParameterAndValue(Parameter parameter, Object value) Return an newNoBindingAvailableExceptionwith an improved problem so the user knows what parameter has caused the problem and why.Methods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, getProblem, getProblems, hasProblemMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoBindingAvailableException
-
NoBindingAvailableException
-
-
Method Details
-
withParameterAndValue
Return an new
NoBindingAvailableExceptionwith an improved problem so the user knows what parameter has caused the problem and why. -
getTo
-
getFrom
-