gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-taler-util] 16/51: Updating Amount from bank.


From: gnunet
Subject: [GNUnet-SVN] [taler-taler-util] 16/51: Updating Amount from bank.
Date: Mon, 23 Sep 2019 22:02:07 +0200

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

ng0 pushed a commit to branch master
in repository taler-util.

commit babc4cccaa2833325e6563f08838eaa9aa51771d
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 5 16:38:42 2019 +0100

    Updating Amount from bank.
---
 python/amount/amount.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/python/amount/amount.py b/python/amount/amount.py
index 34ff93a..e4c4555 100644
--- a/python/amount/amount.py
+++ b/python/amount/amount.py
@@ -32,19 +32,22 @@ class CurrencyMismatch(Exception):
             "%s vs %s" % (curr1, curr2))
 
 class BadFormatAmount(Exception):
+    hint = "Malformed amount string"
     def __init__(self, faulty_str) -> None:
         super(BadFormatAmount, self).__init__(
             "Bad format amount: " + faulty_str)
 
 class NumberTooBig(Exception):
+    hint = "Number given is too big"
     def __init__(self) -> None:
         super(NumberTooBig, self).__init__(
-            "Number given is too big!")
+            "Number given is too big")
 
 class NegativeNumber(Exception):
+    hint = "Negative number given as value and/or fraction"
     def __init__(self) -> None:
         super(NegativeNumber, self).__init__(
-            "Negative number given as value and/or fraction!")
+            "Negative number given as value and/or fraction")
 
 class Amount:
     # How many "fraction" units make one "value" unit of currency

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



reply via email to

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