クラス HttpSessionRequiredException

java.lang.ObjectSE
java.lang.ThrowableSE
java.lang.ExceptionSE
jakarta.servlet.ServletException
org.springframework.web.HttpSessionRequiredException
実装されているすべてのインターフェース:
SerializableSE

public class HttpSessionRequiredException extends jakarta.servlet.ServletException
HTTP リクエストハンドラーが既存のセッションを必要とする場合にスローされる例外。
導入:
2.0
作成者:
Juergen Hoeller
関連事項:
  • コンストラクターの詳細

    • HttpSessionRequiredException

      public HttpSessionRequiredException(StringSE msg)
      新しい HttpSessionRequiredException を作成します。
      パラメーター:
      msg - 詳細メッセージ
    • HttpSessionRequiredException

      public HttpSessionRequiredException(StringSE msg, StringSE expectedAttribute)
      新しい HttpSessionRequiredException を作成します。
      パラメーター:
      msg - 詳細メッセージ
      expectedAttribute - 予期されるセッション属性の名前
      導入:
      4.3
  • メソッドの詳細

    • getExpectedAttribute

      public @Nullable StringSE getExpectedAttribute()
      必要なセッション属性がある場合は、その名前を返します。
      導入:
      4.3