public enum DeauthorizeErrorCode extends java.lang.Enum<DeauthorizeErrorCode> implements ErrorCode
AuthorizationManager.deauthorize()
.Enum Constant and Description |
---|
USAGE_ERROR
AuthorizationManager.deauthorize() was used in an unexpected or unsupported way. |
Modifier and Type | Method and Description |
---|---|
boolean |
isUsageError()
Returns true if the error is a usage error, false otherwise.
|
static DeauthorizeErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeauthorizeErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeauthorizeErrorCode USAGE_ERROR
AuthorizationManager.deauthorize()
was used in an unexpected or unsupported way.
See ResultError.getDebugCode()
and ResultError.getDebugMessage()
for more
information.public static DeauthorizeErrorCode[] values()
for (DeauthorizeErrorCode c : DeauthorizeErrorCode.values()) System.out.println(c);
public static DeauthorizeErrorCode 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 boolean isUsageError()
ErrorCode
Returns true if the error is a usage error, false otherwise.
Useful for writing shared handling of debug codes and messages across Reader SDK operations.
isUsageError
in interface ErrorCode