Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Incorporate simgrid-java in simgrid-java/.
[simgrid.git] / simgrid-java / org / simgrid / msg / JniException.java
1 /*
2  * This exception is raised when there is a problem within the bindings (in JNI). 
3  *
4  * Copyright 2006-2012 The SimGrid Team            
5  * All right reserved. 
6  *
7  * This program is free software; you can redistribute 
8  * it and/or modify it under the terms of the license 
9  * (GNU LGPL) which comes with this package.
10  */
11 package org.simgrid.msg;
12
13 /**
14  * This exception is raised when there is a problem within the bindings (in JNI). 
15  * That's a RuntimeException: I guess nobody wants to survive a JNI error in SimGrid
16  */
17 public class JniException extends RuntimeException {
18         private static final long serialVersionUID = 1L;
19
20
21         /**
22          * Constructs an <code>JniException</code> without a 
23          * detail message. 
24          */
25         public JniException() {
26                 super();
27         }
28         /**
29          * Constructs an <code>JniException</code> with a detail message. 
30          *
31          * @param   s   the detail message.
32          */ public JniException(String s) {
33                  super(s);
34          }
35         public JniException(String string, Exception e) {
36                 super(string,e);
37         }
38 }