X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/076a3598c93a73842a64c03a6707b2b941fd881c..4402a2f5346abec910e7ff8551fccb030a7ba823:/src/java/simgrid/msg/JniException.java
diff --git a/src/java/simgrid/msg/JniException.java b/src/java/simgrid/msg/JniException.java
index 13479b8fea..6592ef5fc8 100644
--- a/src/java/simgrid/msg/JniException.java
+++ b/src/java/simgrid/msg/JniException.java
@@ -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 JniException
without a
- * detail message.
- */
- public JniException() {
- super();
- }
- /*
- * Constructs an JniException
with a detail message.
- *
- * @param s the detail message.
- */ public JniException(String s) {
- super(s);
-}}
+ /**
+ * Constructs an JniException
without a
+ * detail message.
+ */
+ public JniException() {
+ super();
+ }
+ /**
+ * Constructs an JniException
with a detail message.
+ *
+ * @param s the detail message.
+ */ public JniException(String s) {
+ super(s);
+ }
+}