Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make JniException a runtime exception, nobody wants to survive this
[simgrid.git] / src / java / simgrid / msg / JniException.java
index 13479b8..6592ef5 100644 (file)
@@ -1,7 +1,7 @@
 /*
- * $Id$
+ * This exception is raised when there is a problem within the bindings (in JNI). 
  *
- * Copyright 2006,2007 Martin Quinson, Malek Cherier           
+ * Copyright 2006,2007,2010 The SimGrid Team            
  * All right reserved. 
  *
  * This program is free software; you can redistribute 
@@ -12,22 +12,24 @@ package simgrid.msg;
 
 /**
  * This exception is raised when there is a problem within the bindings (in JNI). 
+ * That's a RuntimeException: I guess nobody wants to survive a JNI error in SimGrid
  */
-public class JniException extends MsgException {
-  private static final long serialVersionUID = 1L;
+public class JniException extends RuntimeException {
+       private static final long serialVersionUID = 1L;
 
 
-  /*
-   * Constructs an <code>JniException</code> without a 
-   * detail message. 
-   */
-  public JniException() {
-    super();
-  }
-  /*
-   * Constructs an <code>JniException</code> with a detail message. 
-   *
-   * @param   s   the detail message.
-   */ public JniException(String s) {
-    super(s);
-}}
+       /**
+        * Constructs an <code>JniException</code> without a 
+        * detail message. 
+        */
+       public JniException() {
+               super();
+       }
+       /**
+        * Constructs an <code>JniException</code> with a detail message. 
+        *
+        * @param   s   the detail message.
+        */ public JniException(String s) {
+                super(s);
+        }
+}