New git HEAD version
[libdai.git] / src / exceptions.cpp
1 /* This file is part of libDAI - http://www.libdai.org/
2 *
3 * Copyright (c) 2006-2011, The libDAI authors. All rights reserved.
4 *
5 * Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
6 */
7
8
9 #include <dai/exceptions.h>
10
11
12 namespace dai {
13
14
15 std::string Exception::ErrorStrings[NUM_ERRORS] = {
16 "Feature not implemented",
17 "Assertion failed",
18 "Impossible typecast",
19 "Requested object not found",
20 "Requested belief not available",
21 "Unknown ENUM value",
22 "Unknown DAI algorithm",
23 "Unrecognized parameter estimation method",
24 "Unknown Property type",
25 "Unknown Property",
26 "Malformed Property",
27 "Not all mandatory Properties specified",
28 "Invalid alias",
29 "Cannot read file",
30 "Cannot write file",
31 "Invalid FactorGraph file",
32 "Invalid Evidence file",
33 "Invalid Expectation-Maximization file",
34 "Quantity not normalizable",
35 "Multiple undo levels unsupported",
36 "FactorGraph is not connected",
37 "Internal error",
38 "Runtime error",
39 "Out of memory"
40 };
41
42
43 }