[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.
- [GNUnet-SVN] [taler-taler-util] 05/51: First commit for #4453., (continued)
- [GNUnet-SVN] [taler-taler-util] 05/51: First commit for #4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 02/51: adding amount lib, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 04/51: add talerconfig and linted amount, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 06/51: remove old config, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 07/51: Update "config" module (with one that implements @INLINE@)., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 14/51: log test, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 12/51: make map static, gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 25/51: 4453. Parsing line interval., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 11/51: Towards a usable solution for #4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 13/51: Give loglevels dedicate class + test., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 16/51: Updating Amount from bank.,
gnunet <=
- [GNUnet-SVN] [taler-taler-util] 19/51: Parsing GNUNET_FORCE_LOGFILE., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 26/51: 4453. Check against further fields (filename, func, lineno), gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 17/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 24/51: fix filename extraction., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 18/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 20/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 22/51: 4453, use regex., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 15/51: Update amount., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 21/51: 4453., gnunet, 2019/09/23
- [GNUnet-SVN] [taler-taler-util] 23/51: fetch caller's metadata., gnunet, 2019/09/23