gnunet-svn
[Top][All Lists]
Advanced

[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



reply via email to

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