Enum DepositErrorCode

    • Enum Constant Detail

      • DEPOSIT_ACCOUNT_EXISTS

        public static final DepositErrorCode DEPOSIT_ACCOUNT_EXISTS
      • DEPOSIT_ACCOUNT_NOT_FOUND

        public static final DepositErrorCode DEPOSIT_ACCOUNT_NOT_FOUND
      • PAYMENT_PROCESSING_FAILURE

        public static final DepositErrorCode PAYMENT_PROCESSING_FAILURE
      • PAYMENT_WITH_ID_EXISTS

        public static final DepositErrorCode PAYMENT_WITH_ID_EXISTS
      • DEPOSIT_OPERATION_FAILURE

        public static final DepositErrorCode DEPOSIT_OPERATION_FAILURE
      • COULD_NOT_EXECUTE_STATEMENT

        public static final DepositErrorCode COULD_NOT_EXECUTE_STATEMENT
      • CURRENCY_NOT_SUPPORTED

        public static final DepositErrorCode CURRENCY_NOT_SUPPORTED
      • UNSUPPORTED_CREDIT_LIMIT

        public static final DepositErrorCode UNSUPPORTED_CREDIT_LIMIT
    • Method Detail

      • values

        public static DepositErrorCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (DepositErrorCode c : DepositErrorCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DepositErrorCode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null