File: NexusException.java

package info (click to toggle)
nexus 4.4.3-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 26,864 kB
  • sloc: cpp: 34,928; ansic: 17,317; f90: 2,326; xml: 2,071; java: 1,953; fortran: 1,529; python: 766; makefile: 532; sh: 460; tcl: 173; lisp: 169
file content (39 lines) | stat: -rw-r--r-- 799 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
  * NexusException is thrown whenever an error occurs in the NeXus Java API
  *
  * Mark Koennecke, October 2000
  *
  * copyright: see accompanying COPYRIGHT file.  
  */ 
package org.nexusformat;

public class NexusException extends Exception {

	
	static public final String OutOfMemoryMessage= 
                        "ERROR: NeXus-API: Out of memory";
	static public final String NexusExceptionMessage= 
                        "ERROR: NeXus-API Error"; 
	static public final String NeXusMessage=
                        "ERROR: Unknown NeXus-API Error"; 

	int HDFerror;
	String msg;

	public NexusException() {
		HDFerror = 0;
	}

	public NexusException(String s) {
		msg = s;
	}

	public NexusException(int err) {
		HDFerror = err;
	}

	public String getMessage() {
		return msg;
	}
}