public class MissingServletRequestParameterException extends MissingRequestValueException
ServletRequestBindingException subclass that indicates a missing parameter.| Constructor and Description |
|---|
MissingServletRequestParameterException(String parameterName,
String parameterType)
Constructor for MissingServletRequestParameterException.
|
MissingServletRequestParameterException(String parameterName,
String parameterType,
boolean missingAfterConversion)
Constructor for use when a value was present but converted to
null. |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
String |
getParameterName()
Return the name of the offending parameter.
|
String |
getParameterType()
Return the expected type of the offending parameter.
|
isMissingAfterConversiongetRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MissingServletRequestParameterException(String parameterName, String parameterType)
parameterName - the name of the missing parameterparameterType - the expected type of the missing parameterpublic MissingServletRequestParameterException(String parameterName, String parameterType, boolean missingAfterConversion)
null.parameterName - the name of the missing parameterparameterType - the expected type of the missing parametermissingAfterConversion - whether the value became null after conversionpublic String getMessage()
NestedServletExceptiongetMessage in class NestedServletExceptionpublic final String getParameterName()
public final String getParameterType()