Class NoBindingAvailableException

All Implemented Interfaces:
Serializable

public class NoBindingAvailableException extends RiskscapeException

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 Details

    • NoBindingAvailableException

      public NoBindingAvailableException(Class<?> from, Class<?> to)
  • Method Details

    • setParameter

      public void setParameter(Parameter parameter)

      Update this exception with some parameter context info

    • getProblem

      public Problem getProblem()
      Overrides:
      getProblem in class RiskscapeException
      Returns:
      the problem associated with this exception, or null if there is none
    • getTo

      public Class<?> getTo()
    • getFrom

      public Class<?> getFrom()
    • getParameter

      public Parameter getParameter()

      A parameter associated with the NoBindingAvailableException, may be null