|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception com.sun.identity.shared.locale.L10NMessageImpl com.sun.identity.plugin.session.SessionException
public class SessionException
This class is to handle Session related exceptions.
Field Summary | |
---|---|
static int |
AUTH_ACCOUNT_EXPIRED
|
static int |
AUTH_ERROR_NOT_DEFINED
Error codes. |
static int |
AUTH_USER_INACTIVE
|
static int |
AUTH_USER_LOCKED
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
public static int AUTH_ERROR_NOT_DEFINED
public static int AUTH_USER_INACTIVE
public static int AUTH_USER_LOCKED
public static int AUTH_ACCOUNT_EXPIRED
Constructor Detail |
---|
public SessionException(String message)
SessionException
with a detailed
message.
message
- Detailed message for this exception.public SessionException(Throwable rootCause)
SessionException
with
an embedded exception.
rootCause
- An embedded exceptionpublic SessionException(Exception ex)
SessionException
with an exception.
ex
- an exceptionpublic SessionException(String rbName, String messageKey, Object[] args)
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 nullMethod Detail |
---|
public int getErrCode()
SessionProvider
method.
public void setErrCode(int errorCode)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |