public class MissingRequestCookieException extends ServletRequestBindingException
ServletRequestBindingException
subclass that indicates
that a request cookie expected in the method parameters of an
@RequestMapping
method is not present.MissingRequestHeaderException
,
Serialized FormConstructor and Description |
---|
MissingRequestCookieException(java.lang.String cookieName,
MethodParameter parameter)
Constructor for MissingRequestCookieException.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCookieName()
Return the expected name of the request cookie.
|
java.lang.String |
getMessage()
Return the detail message, including the message from the nested exception
if there is one.
|
MethodParameter |
getParameter()
Return the method parameter bound to the request cookie.
|
getRootCause
public MissingRequestCookieException(java.lang.String cookieName, MethodParameter parameter)
cookieName
- the name of the missing request cookieparameter
- the method parameterpublic java.lang.String getMessage()
NestedServletException
getMessage
in class NestedServletException
public final java.lang.String getCookieName()
public final MethodParameter getParameter()