diff options
| author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-06 15:40:51 +0000 |
|---|---|---|
| committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-08-06 15:40:51 +0000 |
| commit | f21f14ea6e277defe27dadc0731b605bd5c85caf (patch) | |
| tree | 1714a30df24d711fc9ba0496d2c6fad65d179362 /python | |
| parent | 74c3cd2dc54c1e004a55de9961f9ebceab664011 (diff) | |
| download | lasso-f21f14ea6e277defe27dadc0731b605bd5c85caf.tar.gz lasso-f21f14ea6e277defe27dadc0731b605bd5c85caf.tar.xz lasso-f21f14ea6e277defe27dadc0731b605bd5c85caf.zip | |
Reversed error sign convention for Python binding.
Diffstat (limited to 'python')
| -rw-r--r-- | python/lasso.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |
