| 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 |
package dr.evomodel.treedatalikelihood.continuous.cdi; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
public enum CDIErrorCode { |
| 32 |
|
| 33 |
NO_ERROR(0, "no error"), |
| 34 |
GENERAL_ERROR(-1, "general error"), |
| 35 |
OUT_OF_MEMORY_ERROR(-2, "out of memory error"), |
| 36 |
UNIDENTIFIED_EXCEPTION_ERROR(-3, "unidentified exception error"), |
| 37 |
UNINITIALIZED_INSTANCE_ERROR(-4, "uninitialized instance error"), |
| 38 |
OUT_OF_RANGE_ERROR(-5, "One of the indices specified exceeded the range of the array"), |
| 39 |
NO_RESOURCE_ERROR(-6, "No resource matches requirements"), |
| 40 |
NO_IMPLEMENTATION_ERROR(-7, "No implementation matches requirements"), |
| 41 |
FLOATING_POINT_ERROR(-8, "Floating-point range exceeded"); |
| 42 |
|
| 43 |
CDIErrorCode(int errCode, String meaning) { |
| 44 |
this.errCode = errCode; |
| 45 |
this.meaning = meaning; |
| 46 |
} |
| 47 |
|
| 48 |
public int getErrCode() { |
| 49 |
return errCode; |
| 50 |
} |
| 51 |
|
| 52 |
public String getMeaning() { |
| 53 |
return meaning; |
| 54 |
} |
| 55 |
|
| 56 |
private final int errCode; |
| 57 |
private final String meaning; |
| 58 |
} |