public enum FailureType extends Enum<FailureType>
Enum to provide the following to high level messages:
Enum Constant and Description |
---|
ACTION_CANCELLED |
BUTTON_EXPECTED |
FIRMWARE_ERROR |
INVALID_SIGNATURE |
NOT_ENOUGH_FUNDS |
NOT_INITIALIZED |
OTHER |
PIN_CANCELLED |
PIN_EXPECTED |
PIN_INVALID |
SYNTAX_ERROR |
UNEXPECTED_MESSAGE |
Modifier and Type | Method and Description |
---|---|
static FailureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FailureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FailureType UNEXPECTED_MESSAGE
public static final FailureType BUTTON_EXPECTED
public static final FailureType SYNTAX_ERROR
public static final FailureType ACTION_CANCELLED
public static final FailureType PIN_EXPECTED
public static final FailureType PIN_CANCELLED
public static final FailureType PIN_INVALID
public static final FailureType INVALID_SIGNATURE
public static final FailureType OTHER
public static final FailureType NOT_ENOUGH_FUNDS
public static final FailureType NOT_INITIALIZED
public static final FailureType FIRMWARE_ERROR
public static FailureType[] values()
for (FailureType c : FailureType.values()) System.out.println(c);
public static FailureType 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 © 2013–2019 Bitcoin Solutions Ltd. All rights reserved.