类 WebSessionRequiredException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cn.taketoday.core.NestedRuntimeException
cn.taketoday.session.WebSessionRequiredException
所有已实现的接口:
Serializable

public class WebSessionRequiredException extends cn.taketoday.core.NestedRuntimeException
Exception thrown when an HTTP request handler requires a pre-existing session.
从以下版本开始:
4.0 2022/4/8 23:42
作者:
Juergen Hoeller, Harry Yang
另请参阅:
  • 字段详细资料

    • expectedAttribute

      @Nullable private final String expectedAttribute
  • 构造器详细资料

    • WebSessionRequiredException

      public WebSessionRequiredException(String msg)
      Create a new HttpSessionRequiredException.
      参数:
      msg - the detail message
    • WebSessionRequiredException

      public WebSessionRequiredException(String msg, String expectedAttribute)
      Create a new HttpSessionRequiredException.
      参数:
      msg - the detail message
      expectedAttribute - the name of the expected session attribute
  • 方法详细资料

    • getExpectedAttribute

      @Nullable public String getExpectedAttribute()
      Return the name of the expected session attribute, if any.