From 1ada7e4c22d883c1f9fe135626822bcf124ed05e Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:08:03 +0000 Subject: [project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po] merging benjamin branch Original author: Frederic Peters Date: 2008-03-10 10:33:00.592000+01:00 --- bindings/java/LassoException_top.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bindings/java/LassoException_top.java') 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; -- cgit