Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update copyright lines with new year.
[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-2019. The SimGrid Team. All rights reserved.          */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 package org.simgrid.msg;
9
10 /**
11  * Exception raised when there is a problem within the bindings (in JNI).
12  *
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         /** Constructs an <code>JniException</code> without a detail message. */
20         public JniException() {
21                 super();
22         }
23         /** Constructs an <code>JniException</code> with a detail message. */
24         public JniException(String s) {
25                  super(s);
26         }
27         public JniException(String string, Exception e) {
28                 super(string,e);
29         }
30 }