Module jakarta.mvc

Interface ParamError

  • All Known Subinterfaces:
    BindingError, ValidationError

    public interface ParamError
    Base interface for errors related to parameter data binding
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns a human-readable error message for this error.
      java.lang.String getParamName()
      The parameter name of the value that caused the error.
    • Method Detail

      • getMessage

        java.lang.String getMessage()
        Returns a human-readable error message for this error.
        Returns:
        The human-readable error message
      • getParamName

        java.lang.String getParamName()
        The parameter name of the value that caused the error. This is usually the name specified in the binding annotation (i.e. FormParam).
        Returns:
        The name of the parameter which caused the error