Logo AND Algorithmique Numérique Distribuée

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