File: BeagleErrorCode.java

package info (click to toggle)
libhmsbeagle 4.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 46,424 kB
  • sloc: xml: 133,356; cpp: 36,477; ansic: 5,842; java: 2,400; python: 643; sh: 342; makefile: 50
file content (35 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (2)
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
package beagle;

/**
 * @author Andrew Rambaut
 * @author Marc Suchard
 * @version $Id$
 */
public enum BeagleErrorCode {
    NO_ERROR(0, "no error"),
    GENERAL_ERROR(-1, "general error"),
    OUT_OF_MEMORY_ERROR(-2, "out of memory error"),
    UNIDENTIFIED_EXCEPTION_ERROR(-3, "unidentified exception error"),
    UNINITIALIZED_INSTANCE_ERROR(-4, "uninitialized instance error"),
    OUT_OF_RANGE_ERROR(-5, "One of the indices specified exceeded the range of the array"),
    NO_RESOURCE_ERROR(-6, "No resource matches requirements"),
    NO_IMPLEMENTATION_ERROR(-7, "No implementation matches requirements"),
    FLOATING_POINT_ERROR(-8, "Floating-point range exceeded");

    BeagleErrorCode(int errCode, String meaning) {
        this.errCode = errCode;
        this.meaning = meaning;
    }

    public int getErrCode() {
        return errCode;
    }

    public String getMeaning() {
        return meaning;
    }

    private final int errCode;
    private final String meaning;
}