public class MissingServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingException
subclass that indicates a missing parameter.Constructor and Description |
---|
MissingServletRequestParameterException(String parameterName,
String parameterType)
Constructor for MissingServletRequestParameterException.
|
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.
|
getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MissingServletRequestParameterException(String parameterName, String parameterType)
parameterName
- the name of the missing parameterparameterType
- the expected type of the missing parameterpublic String getMessage()
NestedServletException
getMessage
in class NestedServletException
public final String getParameterName()
public final String getParameterType()