Cleaned up error handling by introducing the DAI_THROWE macro.
[libdai.git] / src / treeep.cpp
index 2c88f98..b9e19e3 100644 (file)
@@ -247,7 +247,7 @@ TreeEP::TreeEP( const FactorGraph &fg, const PropertySet &opts ) : JTree(fg, opt
             // find maximal spanning tree
             ConstructRG( MaxSpanningTreePrims( wg ) );
         } else
-            DAI_THROW(INTERNAL_ERROR);
+            DAI_THROW(UNKNOWN_ENUM_VALUE);
     }
 }