org.springframework.web.bind

Class MissingRequestHeaderException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getHeaderName()
      Return the expected name of the request header.
      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 header.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MissingRequestHeaderException

        public MissingRequestHeaderException(java.lang.String headerName,
                                             MethodParameter parameter)
        Constructor for MissingRequestHeaderException.
        Parameters:
        headerName - the name of the missing request header
        parameter - the method parameter
    • Method Detail

      • getHeaderName

        public final java.lang.String getHeaderName()
        Return the expected name of the request header.
      • getParameter

        public final MethodParameter getParameter()
        Return the method parameter bound to the request header.