/** * This methods wraps the calls to next() and catches fail exceptions. * It currently catches all application exceptions. */ public override Decision NextWrapper(Solver solver) { try { return(Next(solver)); } catch (ApplicationException /*e*/) { // TODO(user): Catch only fail exceptions. return(solver.MakeFailDecision()); } }
/** * This methods wraps the calls to next() and catches fail exceptions. */ public override Decision NextWrap(Solver solver) { try { return(Next(solver)); } catch (ApplicationException e) { return(solver.MakeFailDecision()); } }
/** * This methods wraps the calls to next() and catches fail exceptions. * It currently catches all application exceptions. */ public override Decision NextWrapper(Solver solver) { try { return Next(solver); } catch (ApplicationException e) { // TODO(lperron): Catch only fail exceptions. return solver.MakeFailDecision(); } }