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
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getFrom()
A parameter associated with theNoBindingAvailableException
, may be nullClass<?>
getTo()
void
setParameter
(Parameter parameter) Update this exception with some parameter context infoMethods inherited from class nz.org.riskscape.engine.RiskscapeException
getCause, hasProblem
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoBindingAvailableException
-
-
Method Details
-
setParameter
Update this exception with some parameter context info
-
getProblem
- Overrides:
getProblem
in classRiskscapeException
- Returns:
- the problem associated with this exception, or null if there is none
-
getTo
-
getFrom
-
getParameter
A parameter associated with the
NoBindingAvailableException
, may be null
-