public class SessionException extends L10NMessageImpl
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 nullpublic 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.Copyright © 2010-2018, ForgeRock All Rights Reserved.