public enum WLErrorCode extends java.lang.Enum<WLErrorCode>
Enum Constant and Description |
---|
APPLICATION_DISABLED
This error code is returned when there is remote disable enabled for the application .(The Access disable option is
enabled on Management tab of the application in MobileFirst server console which indicates that the particular app or particular verison of the app is no
more available on the server and it pops up a dialogue to upgrade the application .
|
APPLICATION_NOT_REGISTERED
This error is returned when the client tries to set/get client details from the server
before the client is registered on the MobileFirst server.
|
AUTHORIZATION_FAILURE
This error is returned due to o-auth process failure, when the client tries to obtain an access
token or tries to access a resource from the server.
|
CHALLENGE_HANDLING_CANCELED
This error is returned when a challenge is cancelled midway by invoking an API BaseChallengeHAndler.cancel().
|
ILLEGAL_ARGUMENT_EXCEPTION
This error is returned to indicate that a method has been passed with an illegal or inappropriate argument.
|
LOGIN_ALREADY_IN_PROCESS
This error is returned during the client registration when an attempt is made to login and there is an
authorization process to login already in progress.
|
LOGOUT_ALREADY_IN_PROCESS
This error is returned when an attempt is made to logout and there is an
authorization process to logout already in progress.
|
MINIMUM_SERVER
This error is returned when the MFP server version is older than 8.0.0.0-IF201701250919 and
the client sdk version is the higher than 8.0.0.0-IF201701250919.
|
MISSING_CHALLENGE_HANDLER
This error is returned when the challenge handler is not registered.
|
REQUEST_TIMEOUT
This error is returned when the client tries to connect to the MobileFirst server but the request gets timed out.
|
SERVER_ERROR
This is the default server error.
|
UNEXPECTED_ERROR
This error is returned when the server is reachable but the client does not receive a valid response from the server.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
This method retrieves the
WLErrorCode message. |
static WLErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WLErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WLErrorCode UNEXPECTED_ERROR
WLFailResponse.getErrorMsg
to get more information about the error.public static final WLErrorCode REQUEST_TIMEOUT
WLResourceRequest
and there is a delay in adapter response that
is more than timeout value.
2.If the server is not accessible on the IP address/port specified in mfpclient.properties file.public static final WLErrorCode AUTHORIZATION_FAILURE
public static final WLErrorCode CHALLENGE_HANDLING_CANCELED
public static final WLErrorCode MISSING_CHALLENGE_HANDLER
public static final WLErrorCode ILLEGAL_ARGUMENT_EXCEPTION
WLFailResponse.getErrorMsg
to get more information about the error.public static final WLErrorCode LOGIN_ALREADY_IN_PROCESS
public static final WLErrorCode LOGOUT_ALREADY_IN_PROCESS
public static final WLErrorCode APPLICATION_NOT_REGISTERED
public static final WLErrorCode SERVER_ERROR
WLFailResponse.getErrorMsg
to get more information about the error.public static final WLErrorCode MINIMUM_SERVER
public static final WLErrorCode APPLICATION_DISABLED
public static WLErrorCode[] values()
for (WLErrorCode c : WLErrorCode.values()) System.out.println(c);
public static WLErrorCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
WLErrorCode
message.WLErrorCode
message.