Esempio n. 1
0
 public override void RefuteWrapper(Solver solver)
 {
     try {
         Refute(solver);
     } catch (ApplicationException /*e*/) {
         // TODO(user): Catch only fail exceptions.
         solver.ShouldFail();
     }
 }
Esempio n. 2
0
 /**
  * This methods wraps the calls to next() and catches fail exceptions.
  */
 public override void RunWrapper(Solver solver)
 {
     try {
         Run(solver);
     } catch (ApplicationException /*e*/) {
         // TODO(user): Check that this is indeed a fail. Try implementing
         // custom exceptions (hard).
         solver.ShouldFail();
     }
 }
 /**
  * This methods wraps the calls to Apply() and catches fail exceptions.
  * It currently catches all application exceptions.
  */
 public override void ApplyWrapper(Solver solver)
 {
     try
     {
         Apply(solver);
     }
     catch (ApplicationException e)
     {
         // TODO(user): Catch only fail exceptions.
         solver.ShouldFail();
     }
 }
Esempio n. 4
0
 /**
  * This methods wraps the calls to next() and catches fail exceptions.
  */
 public override void RunWrapper(Solver solver)
 {
   try
   {
     Run(solver);
   }
   catch (ApplicationException e)
   {
     // TODO(lperron): Check that this is indeed a fail. Try implementing
     // custom exceptions (hard).
     solver.ShouldFail();
   }
 }
Esempio n. 5
0
 public override void RefuteWrapper(Solver solver)
 {
     try
     {
       Refute(solver);
     }
     catch (ApplicationException e)
     {
       // TODO(user): Catch only fail exceptions.
       solver.ShouldFail();
     }
 }