View Revisions: Issue #5013

Summary 0005013: Refine error reporting
Revision 2017-05-16 11:33 by Marcello Stanisci
Description The function wire_transfer() in talerbank/app/views.py dies with CurrencyMismatchException
both if the amount to be transferred has a currency different from the one used by the bank
and if the bank has internal currency inconsistencies (for example MAX_DEBT has a currency
other than the one used by the bank).

This way is impossible to distingush between an error caused by the client using some API
and a bank's internal error. Error reporting should then distinguish between these cases
and react accordingly.
Revision 2017-05-16 11:31 by Marcello Stanisci
Description
The function wire_transfer() in talerbank/app/views.py raises CurrencyMismatchException
both if the amount to be transferred has a currency different from the one used by the bank
and if the bank has internal currency inconsistencies (for example MAX_DEBT has a currency
other than the one used by the bank).

This way is impossible to distingush between an error caused by the client using some API
and a bank's internal error. Error reporting should then distinguish between these cases
and react accordingly.