Esempio n. 1
0
 /**
  * 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());
     }
 }
Esempio n. 2
0
 /**
  * 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());
     }
 }
Esempio n. 3
0
 /**
  * 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();
   }
 }