From f21f14ea6e277defe27dadc0731b605bd5c85caf Mon Sep 17 00:00:00 2001 From: Emmanuel Raviart Date: Fri, 6 Aug 2004 15:40:51 +0000 Subject: Reversed error sign convention for Python binding. --- python/lasso.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'python') diff --git a/python/lasso.py b/python/lasso.py index 6b311a3f..96d528f2 100644 --- a/python/lasso.py +++ b/python/lasso.py @@ -38,7 +38,7 @@ _initialized = False class Error(Exception): - code = None # Use negative error codes for binding specific errors. + code = None # Use positive error codes for binding specific errors. functionName = None def __init__(self, functionName): @@ -58,17 +58,17 @@ class ErrorUnknown(Error): class ErrorLassoAlreadyInitialized(Error): - code = -1 + code = 1 msg = 'Lasso already initialized' class ErrorLassoNotInitialized(Error): - code = -2 + code = 2 msg = 'Lasso not initialized or already shotdown' class ErrorInstanceCreationFailed(Error): - code = -3 + code = 3 def __str__(self, functionName): return 'Instance creation failed in Lasso function %s()' % self.functionName -- cgit