Class MissingServletRequestParameterException

All Implemented Interfaces:
Serializable

public class MissingServletRequestParameterException extends MissingRequestValueException
ServletRequestBindingException subclass that indicates a missing parameter.
Since:
2.0.2
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • MissingServletRequestParameterException

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

      public MissingServletRequestParameterException(String parameterName, String parameterType, boolean missingAfterConversion)
      Constructor for use when a value was present but converted to null.
      Parameters:
      parameterName - the name of the missing parameter
      parameterType - the expected type of the missing parameter
      missingAfterConversion - whether the value became null after conversion
      Since:
      5.3.6
  • Method Details

    • getMessage

      public String getMessage()
      Description copied from class: NestedServletException
      Return the detail message, including the message from the nested exception if there is one.
      Overrides:
      getMessage in class NestedServletException
    • 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.