com.sun.identity.plugin.session
クラス SessionException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 com.sun.identity.shared.locale.L10NMessageImpl
              上位を拡張 com.sun.identity.plugin.session.SessionException

public class SessionException
extends com.sun.identity.shared.locale.L10NMessageImpl

This class is to handle Session related exceptions.

関連項目:
直列化された形式

フィールドの概要
static int AUTH_ACCOUNT_EXPIRED
           
static int AUTH_ERROR_NOT_DEFINED
          Error codes.
static int AUTH_USER_INACTIVE
           
static int AUTH_USER_LOCKED
           
 
コンストラクタの概要
SessionException(Exception ex)
          Constructs a SessionException with an exception.
SessionException(String message)
          Constructs a SessionException with a detailed message.
SessionException(String rbName, String messageKey, Object[] args)
          Constructs a new SessionException without a nested Throwable.
SessionException(Throwable rootCause)
          Constructs a SessionException with an embedded exception.
 
メソッドの概要
 int getErrCode()
          Returns the error code for the caller of a SessionProvider method.
 void setErrCode(int errorCode)
          Sets an error code by an implementation of the SessionProvider to indicate a specific error condition which could be retrieved by the caller of a SessionProvider method.
 

フィールドの詳細

AUTH_ERROR_NOT_DEFINED

public static int AUTH_ERROR_NOT_DEFINED
Error codes.


AUTH_USER_INACTIVE

public static int AUTH_USER_INACTIVE

AUTH_USER_LOCKED

public static int AUTH_USER_LOCKED

AUTH_ACCOUNT_EXPIRED

public static int AUTH_ACCOUNT_EXPIRED
コンストラクタの詳細

SessionException

public SessionException(String message)
Constructs a SessionException with a detailed message.

パラメータ:
message - Detailed message for this exception.

SessionException

public SessionException(Throwable rootCause)
Constructs a SessionException with an embedded exception.

パラメータ:
rootCause - An embedded exception

SessionException

public SessionException(Exception ex)
Constructs a SessionException with an exception.

パラメータ:
ex - an exception

SessionException

public SessionException(String rbName,
                        String messageKey,
                        Object[] args)
Constructs a new SessionException without a nested Throwable.

パラメータ:
rbName - Resource Bundle Name to be used for getting localized error message.
messageKey - Key to resource bundle. You can use
 ResourceBundle rb = ResourceBunde.getBundle (rbName,locale);
 String localizedStr = rb.getString(messageCode);
 
args - arguments to message. If it is not present pass them as null
メソッドの詳細

getErrCode

public int getErrCode()
Returns the error code for the caller of a SessionProvider method.

戻り値:
Error code.

setErrCode

public void setErrCode(int errorCode)
Sets an error code by an implementation of the SessionProvider to indicate a specific error condition which could be retrieved by the caller of a SessionProvider method.

パラメータ:
errorCode - the error code to be set.