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;
}
|