summaryrefslogtreecommitdiffstats
path: root/bindings/java/LassoException_top.java
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/java/LassoException_top.java')
-rw-r--r--bindings/java/LassoException_top.java6
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;