Package com.sun.identity.plugin.session
Class SessionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.sun.identity.shared.locale.L10NMessageImpl
-
- com.sun.identity.plugin.session.SessionException
-
- All Implemented Interfaces:
L10NMessage,Serializable
public class SessionException extends L10NMessageImpl
This class is to handle Session related exceptions.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intAUTH_ACCOUNT_EXPIREDstatic intAUTH_ERROR_NOT_DEFINEDError codes.static intAUTH_USER_INACTIVEstatic intAUTH_USER_LOCKED
-
Constructor Summary
Constructors Constructor Description SessionException(Exception ex)Constructs aSessionExceptionwith an exception.SessionException(String message)Constructs aSessionExceptionwith a detailed message.SessionException(String rbName, String messageKey, Object[] args)Constructs a newSessionExceptionwithout a nestedThrowable.SessionException(Throwable rootCause)Constructs aSessionExceptionwith an embedded exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrCode()Returns the error code for the caller of aSessionProvidermethod.voidsetErrCode(int errorCode)Sets an error code by an implementation of theSessionProviderto indicate a specific error condition which could be retrieved by the caller of a SessionProvider method.-
Methods inherited from class com.sun.identity.shared.locale.L10NMessageImpl
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SessionException
public SessionException(String message)
Constructs aSessionExceptionwith a detailed message.- Parameters:
message- Detailed message for this exception.
-
SessionException
public SessionException(Throwable rootCause)
Constructs aSessionExceptionwith an embedded exception.- Parameters:
rootCause- An embedded exception
-
SessionException
public SessionException(Exception ex)
Constructs aSessionExceptionwith an exception.- Parameters:
ex- an exception
-
SessionException
public SessionException(String rbName, String messageKey, Object[] args)
Constructs a newSessionExceptionwithout a nestedThrowable.- Parameters:
rbName- Resource Bundle Name to be used for getting localized error message.messageKey- Key to resource bundle. You can useResourceBundle rb = ResourceBunde.getBundle (rbName,locale); String localizedStr = rb.getString(messageCode);
args- arguments to message. If it is not present pass them as null
-
-
Method Detail
-
getErrCode
public int getErrCode()
Returns the error code for the caller of aSessionProvidermethod.- Returns:
- Error code.
-
setErrCode
public void setErrCode(int errorCode)
Sets an error code by an implementation of theSessionProviderto indicate a specific error condition which could be retrieved by the caller of a SessionProvider method.- Parameters:
errorCode- the error code to be set.
-
-