Class BindingErrorImpl

java.lang.Object
fr.paris.lutece.portal.util.mvc.binding.BindingErrorImpl
All Implemented Interfaces:
BindingError, ParamError

public class BindingErrorImpl extends Object implements BindingError
Represents an error that occurs during the binding process in the MVC lutece framework. This class encapsulates details about the error, including the parameter name, error message, and the submitted value that caused the binding to fail.
  • Constructor Details

    • BindingErrorImpl

      public BindingErrorImpl(String paramName, String message, String submittedValue)
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from interface: ParamError
      Returns a human-readable error message for this error.
      Specified by:
      getMessage in interface ParamError
      Returns:
      The human-readable error message
    • setMessage

      public void setMessage(String message)
    • getParamName

      public String getParamName()
      Description copied from interface: ParamError
      The parameter name of the value that caused the error. This is usually the name specified in the binding annotation.
      Specified by:
      getParamName in interface ParamError
      Returns:
      The name of the parameter which caused the error
    • setParamName

      public void setParamName(String paramName)
    • getSubmittedValue

      public String getSubmittedValue()
      Description copied from interface: BindingError
      Provides access to the raw submitted value of the parameter which caused the binding to fail.
      Specified by:
      getSubmittedValue in interface BindingError
      Returns:
      The raw value submitted for the parameter