public enum ForbiddenErrorType extends Enum<ForbiddenErrorType>
ForbiddenJsonException
.Enum Constant and Description |
---|
ACTIVATION_CLOSED_ALREADY
If activation in credentials is closed already.
|
ACTIVATION_STILL_ISSUED
If activation in credentials is not activated.
|
INSUFFICIENT_ACCESS_RIGHTS
It is most used code, which covers cases when credentials is not sufficient to perform request
or, for example, on attempt to get non-public data.
|
SELLER_NOT_FOUND
If there is credentials and seller with given country and corporate id is not registered.
|
WRONG_ACTIVATION_PERIOD
If either activation's period haven't started yet or has expired already.
|
WRONG_USERNAME_OR_PASSWORD
If either username or password failed to pass authorization.
|
Modifier and Type | Method and Description |
---|---|
static ForbiddenErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForbiddenErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForbiddenErrorType INSUFFICIENT_ACCESS_RIGHTS
public static final ForbiddenErrorType ACTIVATION_CLOSED_ALREADY
I.e. it is in the ActivationStatus.CLOSED
state.
public static final ForbiddenErrorType ACTIVATION_STILL_ISSUED
I.e. it is in the ActivationStatus.ISSUED
state.
public static final ForbiddenErrorType SELLER_NOT_FOUND
If caught, you should register yourself on the server.
public static final ForbiddenErrorType WRONG_ACTIVATION_PERIOD
public static final ForbiddenErrorType WRONG_USERNAME_OR_PASSWORD
User should get "Please contact sales@srv4pos.com if this error appears longer than 24h".
public static ForbiddenErrorType[] values()
for (ForbiddenErrorType c : ForbiddenErrorType.values()) System.out.println(c);
public static ForbiddenErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016. All rights reserved.