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

    Modifier and Type
    Method
    Description
    Returns a human-readable error message for this error.
    The parameter name of the value that caused the error.
  • Method Details

    • getMessage

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

      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