NeXusJavaBindings  1
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
HDFException.java
Go to the documentation of this file.
1 /****************************************************************************
2  * NCSA HDF *
3  * National Comptational Science Alliance *
4  * University of Illinois at Urbana-Champaign *
5  * 605 E. Springfield, Champaign IL 61820 *
6  * *
7  * For conditions of distribution and use, see the accompanying *
8  * hdf/COPYING file. *
9  * *
10  ****************************************************************************/
11 
12 package ncsa.hdf.hdflib;
13 
36 public class HDFException extends Exception {
37 
38 
39  static public final String OutOfMemoryMessage="ERROR: HDF Library: Out of memory";
40  static public final String HDFExceptionMessage="ERROR: HDF Library Error";
41  static public final String HDFMessage="ERROR: Unknown HDF Error";
42 
43  int HDFerror;
44  String msg;
45 
46  public HDFException() {
47  HDFerror = 0;
48  }
49 
50  public HDFException(String s) {
51  msg = s;
52  }
53 
54  public HDFException(int err) {
55  HDFerror = err;
56  }
57 
58  public String getMessage() {
59  return msg;
60  }
61 }