[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-bank] 04/12: providing the 'hint' field to those exe
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-bank] 04/12: providing the 'hint' field to those exeptions missing it. |
Date: |
Fri, 29 Mar 2019 18:08:23 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository bank.
commit 1192d66c29cddf3a0032ffb40f9473a93d175993
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Feb 5 16:17:52 2019 +0100
providing the 'hint' field to those exeptions missing it.
---
talerbank/app/amount.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/talerbank/app/amount.py b/talerbank/app/amount.py
index 588b6b6..04fad51 100644
--- a/talerbank/app/amount.py
+++ b/talerbank/app/amount.py
@@ -46,8 +46,9 @@ class CurrencyMismatch(Exception):
##
# Exception class to raise when a amount string is not valid.
class BadFormatAmount(Exception):
- hint = "Amount given was incorrect"
-
+
+ hint = "Malformed amount string"
+
##
# Init constructor.
#
@@ -60,14 +61,16 @@ class BadFormatAmount(Exception):
##
# Main Amount class.
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:
##
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [taler-bank] branch master updated (a3e7f9d -> 8c2d25b), gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 02/12: Minor change for #5542., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 04/12: providing the 'hint' field to those exeptions missing it.,
gnunet <=
- [GNUnet-SVN] [taler-bank] 01/12: Hot-addressing #5542., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 07/12: Addressing #5543., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 08/12: Addressing #5543., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 05/12: typo, gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 06/12: Addressing #5543., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 03/12: Handling new exeption within the middleware., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 12/12: #5546, gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 10/12: syntax, gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 09/12: 5543. Let Jinja render abnormal balances., gnunet, 2019/03/29
- [GNUnet-SVN] [taler-bank] 11/12: syntax, gnunet, 2019/03/29