gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: adding more bank's


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: adding more bank's error codes
Date: Fri, 15 Dec 2017 16:17:20 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 8021e70  adding more bank's error codes
8021e70 is described below

commit 8021e7064d63ca69480f2dd1b6bb89b61d58dda3
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri Dec 15 16:17:00 2017 +0100

    adding more bank's error codes
---
 src/include/taler_error_codes.h | 39 ++++++++++++++++++++++++++++++++++-----
 1 file changed, 34 insertions(+), 5 deletions(-)

diff --git a/src/include/taler_error_codes.h b/src/include/taler_error_codes.h
index 85350e8..2d0c832 100644
--- a/src/include/taler_error_codes.h
+++ b/src/include/taler_error_codes.h
@@ -1502,39 +1502,68 @@ enum TALER_ErrorCode
 
   /* *************** Taler BANK/FAKEBANK error codes *************** */
 
+  /**
+   * Authentication failed for an unspecified request.
+   * To return when the view name is not available, or
+   * no specific error code is defined yet.
+   */
+  TALER_EC_BANK_NOT_AUTHORIZED = 5000,
+
+  /**
+   * The bank could not find the bank account specified
+   * in the request.  Returned with a status code of MHD_HTTP_NOT_FOUND.
+   */
+  TALER_EC_BANK_UNKNOWN_ACCOUNT = 5001,
 
   /**
    * Authentication failed for the /admin/add/incoming request.
    * Returned with a status code of MHD_HTTP_FORBIDDEN.
    */
-  TALER_EC_BANK_TRANSFER_NOT_AUHTORIZED = 4101,
+  TALER_EC_BANK_TRANSFER_NOT_AUHTORIZED = 5100,
+
+  /**
+   * The wire transfer cannot be done because the debitor would
+   * reach a unallowed debit.
+   */
+  TALER_EC_BANK_TRANSFER_DEBIT = 5101,
+
+  /**
+   * The wire transfer cannot be done because the credit and
+   * debit account are the same.
+   */
+  TALER_EC_BANK_TRANSFER_SAME_ACCOUNT = 5102,
 
   /**
    * Authentication failed for the /history request.
    * Returned with a status code of MHD_HTTP_FORBIDDEN.
    */
-  TALER_EC_BANK_HISTORY_NOT_AUHTORIZED = 4151,
+  TALER_EC_BANK_HISTORY_NOT_AUHTORIZED = 5200,
 
   /**
    * The bank library had trouble obtaining a valid
    * HTTP response.
    * Returned with a status code of 0.
    */
-  TALER_EC_BANK_HISTORY_HTTP_FAILURE = 4152,
+  TALER_EC_BANK_HISTORY_HTTP_FAILURE = 5201,
 
   /**
    * The bank could not find the wire transfer that was supposed to
    * be rejected.
    * Returned with a status code of MHD_HTTP_NOT_FOUND.
    */
-  TALER_EC_BANK_REJECT_NOT_FOUND = 4250,
+  TALER_EC_BANK_REJECT_NOT_FOUND = 5300,
 
   /**
    * Authentication failed for the /reject request.
    * Returned with a status code of MHD_HTTP_FORBIDDEN.
    */
-  TALER_EC_BANK_REJECT_NOT_AUHTORIZED = 4251,
+  TALER_EC_BANK_REJECT_NOT_AUTHORIZED = 5301,
 
+  /**
+   * The client wants to reject a transaction where they are
+   * not the _credit_ party, impossible!
+   */
+  TALER_EC_BANK_REJECT_NO_RIGHTS = 5302,
 
   /**
    * End of error code range.

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]