类 MissingRequestParameterException

所有已实现的接口:
HttpStatusCodeProvider, ErrorResponse, Serializable

public class MissingRequestParameterException extends MissingRequestValueException
RequestBindingException subclass that indicates a missing parameter.
从以下版本开始:
4.0 2022/1/22 23:20
作者:
Harry Yang
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • parameterName

      private final String parameterName
    • parameterType

      private final String parameterType
  • 构造器详细资料

    • MissingRequestParameterException

      public MissingRequestParameterException(String parameterName, String parameterType)
      Constructor for MissingRequestParameterException.
      参数:
      parameterName - the name of the missing parameter
      parameterType - the expected type of the missing parameter
    • MissingRequestParameterException

      public MissingRequestParameterException(String parameterName, String parameterType, boolean missingAfterConversion)
      Constructor for use when a value was present but converted to null.
      参数:
      parameterName - the name of the missing parameter
      parameterType - the expected type of the missing parameter
      missingAfterConversion - whether the value became null after conversion
  • 方法详细资料

    • getMessage

      public String getMessage()
      覆盖:
      getMessage 在类中 Throwable
    • getParameterName

      public final String getParameterName()
      Return the name of the offending parameter.
    • getParameterType

      public final String getParameterType()
      Return the expected type of the offending parameter.