diff options
| author | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:03 +0000 |
|---|---|---|
| committer | Frederic Peters <fpeters@entrouvert.com> | 2008-04-29 12:08:03 +0000 |
| commit | 1ada7e4c22d883c1f9fe135626822bcf124ed05e (patch) | |
| tree | a0ae3e339d68621bc0b303527e69617e7ca6aa2b /bindings/java/LassoException_top.java | |
| parent | 4e43c605c28a713ca3d7b4a55ea1b118dc67d43d (diff) | |
| download | lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.tar.gz lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.tar.xz lasso-1ada7e4c22d883c1f9fe135626822bcf124ed05e.zip | |
[project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po]
merging benjamin branch
Original author: Frederic Peters <fpeters@0d.be>
Date: 2008-03-10 10:33:00.592000+01:00
Diffstat (limited to 'bindings/java/LassoException_top.java')
| -rw-r--r-- | bindings/java/LassoException_top.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bindings/java/LassoException_top.java b/bindings/java/LassoException_top.java index 8e08f43c..012b91f8 100644 --- a/bindings/java/LassoException_top.java +++ b/bindings/java/LassoException_top.java @@ -1,6 +1,7 @@ package com.entrouvert.lasso; public class LassoException extends RuntimeException { + private static final long serialVersionUID = 6170037639785281128L; public int errorCode; private static boolean throws_for_recoverable_errors = true; /** If set to true, enables throwing of exception for @@ -18,13 +19,12 @@ public class LassoException extends RuntimeException { protected LassoException(int errorCode) { super(LassoJNI.strError(errorCode)); - errorCode = errorCode; + this.errorCode = errorCode; } protected LassoException(int errorCode, String message) { super(message); - errorCode = errorCode; + this.errorCode = errorCode; } - private static final Class[] paramst = { Integer.class }; protected static int throwError(int errorCode) throws LassoException { if (errorCode == 0 || (! throws_for_recoverable_errors && errorCode > 0)) return errorCode; |
