Debian Codegraph @

src/dr/evomodel/treedatalikelihood/continuous/cdi/CDIErrorCode.java

raw symbols SCIP
1 /*
2 * CDIErrorCode.java
3 *
4 * Copyright (c) 2002-2016 Alexei Drummond, Andrew Rambaut and Marc Suchard
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package dr.evomodel.treedatalikelihood.continuous.cdi;
27
28 /**
29 * Created by msuchard on 9/14/16.
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 }