public enum DepositErrorCode extends Enum<DepositErrorCode>
| Enum Constant and Description |
|---|
DEPOSIT_ACCOUNT_EXISTS |
DEPOSIT_ACCOUNT_NOT_FOUND |
DEPOSIT_OPERATION_FAILURE |
INSUFFICIENT_FUNDS |
PAYMENT_NOT_FOUND |
PAYMENT_PROCESSING_FAILURE |
PAYMENT_WITH_ID_EXISTS |
TRANSACTION_NOT_FOUND |
| Modifier and Type | Method and Description |
|---|---|
static DepositErrorCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DepositErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DepositErrorCode DEPOSIT_ACCOUNT_EXISTS
public static final DepositErrorCode INSUFFICIENT_FUNDS
public static final DepositErrorCode DEPOSIT_ACCOUNT_NOT_FOUND
public static final DepositErrorCode PAYMENT_NOT_FOUND
public static final DepositErrorCode PAYMENT_PROCESSING_FAILURE
public static final DepositErrorCode PAYMENT_WITH_ID_EXISTS
public static final DepositErrorCode TRANSACTION_NOT_FOUND
public static final DepositErrorCode DEPOSIT_OPERATION_FAILURE
public static DepositErrorCode[] values()
for (DepositErrorCode c : DepositErrorCode.values()) System.out.println(c);
public static DepositErrorCode 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 © 2019. All rights reserved.