Package org.springframework.web.bind
Class MissingServletRequestParameterException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- javax.servlet.ServletException
- org.springframework.web.util.NestedServletException
- org.springframework.web.bind.ServletRequestBindingException
- org.springframework.web.bind.MissingServletRequestParameterException
- All Implemented Interfaces:
Serializable
public class MissingServletRequestParameterException extends ServletRequestBindingException
ServletRequestBindingExceptionsubclass that indicates a missing parameter.- Since:
- 2.0.2
- Author:
- Juergen Hoeller
- See Also:
- Serialized Form
Constructor Summary
Constructors Constructor Description MissingServletRequestParameterException(String parameterName, String parameterType)Constructor for MissingServletRequestParameterException.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Return the detail message, including the message from the nested exception if there is one.StringgetParameterName()Return the name of the offending parameter.StringgetParameterType()Return the expected type of the offending parameter.Methods inherited from class javax.servlet.ServletException
getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Constructor Detail
MissingServletRequestParameterException
public MissingServletRequestParameterException(String parameterName, String parameterType)
Constructor for MissingServletRequestParameterException.- Parameters:
parameterName- the name of the missing parameterparameterType- the expected type of the missing parameter
Method Detail
getMessage
public String getMessage()
Description copied from class:NestedServletExceptionReturn the detail message, including the message from the nested exception if there is one.- Overrides:
getMessagein classNestedServletException
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.