public class MissingRequestHeaderException extends MissingRequestValueException
ServletRequestBindingException subclass that indicates
 that a request header expected in the method parameters of an
 @RequestMapping method is not present.MissingRequestCookieException, 
Serialized Form| Constructor and Description | 
|---|
MissingRequestHeaderException(String headerName,
                             MethodParameter parameter)
Constructor for MissingRequestHeaderException. 
 | 
MissingRequestHeaderException(String headerName,
                             MethodParameter parameter,
                             boolean missingAfterConversion)
Constructor for use when a value was present but converted to  
null. | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getHeaderName()
Return the expected name of the request header. 
 | 
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 header. 
 | 
isMissingAfterConversiongetRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MissingRequestHeaderException(String headerName, MethodParameter parameter)
headerName - the name of the missing request headerparameter - the method parameterpublic MissingRequestHeaderException(String headerName, MethodParameter parameter, boolean missingAfterConversion)
null.headerName - the name of the missing request headerparameter - the method parametermissingAfterConversion - whether the value became null after conversionpublic String getMessage()
NestedServletExceptiongetMessage in class NestedServletExceptionpublic final String getHeaderName()
public final MethodParameter getParameter()