Improved dai::Exception object (it now stores more information and doesn't print...
[libdai.git] / src / matlab / dai.cpp
index b76f7d8..c33188c 100644 (file)
@@ -125,7 +125,7 @@ void mexFunction( int nlhs, mxArray *plhs[], int nrhs, const mxArray*prhs[] ) {
         try {
             map_state = obj->findMaximum();
         } catch( Exception &e ) {
-            if( e.code() == Exception::NOT_IMPLEMENTED )
+            if( e.getCode() == Exception::NOT_IMPLEMENTED )
                 supported = false;
             else
                 throw;