[POS-commit] r1279 - stoqlib/trunk/stoqlib
Evandro Vale Miquelito
evandro at async.com.br
Tue Sep 27 18:28:55 BRT 2005
Author: evandro
Date: Tue Sep 27 18:28:54 2005
New Revision: 1279
Modified:
stoqlib/trunk/stoqlib/exceptions.py
Log:
Adding exceptions
Modified: stoqlib/trunk/stoqlib/exceptions.py
==============================================================================
--- stoqlib/trunk/stoqlib/exceptions.py (original)
+++ stoqlib/trunk/stoqlib/exceptions.py Tue Sep 27 18:28:54 2005
@@ -62,9 +62,11 @@
class StockError(Exception):
"""Exception for stock operations"""
+
class EditorError(Exception):
"""Exception for stoqlib editors"""
+
class SelectionError(Exception):
"""Invalid number of items selected in a list"""
@@ -72,5 +74,15 @@
class TillError(Exception):
""" General Till operation errors """
+
class PaymentError(Exception):
""" General payment errors """
+
+
+class PaymentMethodError(Exception):
+ """Error for payment methods"""
+
+
+class AdapterError(Exception):
+ """Raise this exception when an object try adding a facet but it doesn't
+ actually implements that interface"""
More information about the POS-commit
mailing list