类 MissingRequestCookieException

所有已实现的接口:
HttpStatusCodeProvider, ErrorResponse, Serializable

public class MissingRequestCookieException extends MissingRequestValueException
RequestBindingException subclass that indicates that a request cookie expected in the method parameters of an @RequestMapping method is not present.
作者:
TODAY 2021/3/10 20:14
另请参阅:
  • 字段详细资料

    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • cookieName

      private final String cookieName
    • parameter

      private final cn.taketoday.core.MethodParameter parameter
  • 构造器详细资料

    • MissingRequestCookieException

      public MissingRequestCookieException(String cookieName, cn.taketoday.core.MethodParameter parameter)
      Constructor for MissingRequestCookieException.
      参数:
      cookieName - the name of the missing request cookie
      parameter - the method parameter
    • MissingRequestCookieException

      public MissingRequestCookieException(String cookieName, cn.taketoday.core.MethodParameter parameter, boolean missingAfterConversion)
      Constructor for use when a value was present but converted to null.
      参数:
      cookieName - the name of the missing request cookie
      parameter - the method parameter
      missingAfterConversion - whether the value became null after conversion
  • 方法详细资料

    • getMessage

      public String getMessage()
      覆盖:
      getMessage 在类中 Throwable
    • getCookieName

      public final String getCookieName()
      Return the expected name of the request cookie.
    • getParameter

      public final cn.taketoday.core.MethodParameter getParameter()
      Return the method parameter bound to the request cookie.