Improved WeightedGraph code and added unit tests
[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-2010 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 "Feature not implemented",
20 "Assertion failed",
21 "Impossible typecast",
22 "Requested object not found",
23 "Requested belief not available",
24 "Unknown ENUM value",
25 "Unknown DAI algorithm",
26 "Unrecognized parameter estimation method",
27 "Unknown Property type",
28 "Unknown Property",
29 "Malformed Property",
30 "Not all mandatory Properties specified",
31 "Invalid alias",
32 "Cannot read file",
33 "Cannot write file",
34 "Invalid FactorGraph file",
35 "Invalid Evidence file",
36 "Invalid Expectation-Maximization file",
37 "Quantity not normalizable",
38 "Multiple undo levels unsupported",
39 "FactorGraph is not connected",
40 "Internal error",
41 "Runtime error"
42 };
43
44
45 }