Merge branch 'pletscher'
[libdai.git] / src / exceptions.cpp
1 /* This file is part of libDAI - http://www.libdai.org/
2 *
3 * libDAI is licensed under the terms of the GNU General Public License version
4 * 2, or (at your option) any later version. libDAI is distributed without any
5 * warranty. See the file COPYING for more details.
6 *
7 * Copyright (C) 2006-2009 Joris Mooij [joris dot mooij at libdai dot org]
8 * Copyright (C) 2006-2007 Radboud University Nijmegen, The Netherlands
9 */
10
11
12 #include <dai/exceptions.h>
13
14
15 namespace dai {
16
17
18 std::string Exception::ErrorStrings[NUM_ERRORS] = {
19 "Assertion failed",
20 "Feature not implemented",
21 "Unknown DAI algorithm",
22 "Unknown Property type",
23 "Malformed Property",
24 "Unknown ENUM value",
25 "Cannot read file",
26 "Cannot write file",
27 "Invalid FactorGraph file",
28 "Not all mandatory Properties specified",
29 "Multiple undo levels unsupported",
30 "FactorGraph is not connected",
31 "Impossible typecast",
32 "Internal error",
33 "Runtime error",
34 "Quantity not normalizable",
35 "Invalid Evidence file",
36 "Invalid Expectation-Maximization file",
37 "Unrecognized parameter estimation method",
38 "Requested object not found"
39 };
40
41
42 }