public enum ResultType extends Enum<ResultType>
TransactionResult
.Enum Constant and Description |
---|
ACCOUNT_NO_FUNDS
The account did not have enough funds requested.
|
ACCOUNT_NO_SPACE
The account would be put past it's maximum capacity, so the transaction
failed.
|
CONTEXT_MISMATCH
The transaction attempt resulted in a difference in
Context s. |
FAILED
The transaction failed for an unspecific reason.
|
SUCCESS
Transaction finished with no errors.
|
Modifier and Type | Method and Description |
---|---|
static ResultType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResultType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResultType SUCCESS
public static final ResultType CONTEXT_MISMATCH
Context
s.public static final ResultType FAILED
public static final ResultType ACCOUNT_NO_FUNDS
public static final ResultType ACCOUNT_NO_SPACE
public static ResultType[] values()
for (ResultType c : ResultType.values()) System.out.println(c);
public static ResultType 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 null