コード例 #1
0
 public override void RefuteWrapper(Solver solver)
 {
     try {
         Refute(solver);
     } catch (ApplicationException /*e*/) {
         // TODO(user): Catch only fail exceptions.
         solver.ShouldFail();
     }
 }
コード例 #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();
     }
 }
コード例 #3
0
 /**
  * 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();
     }
 }
コード例 #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();
   }
 }
コード例 #5
0
 public override void RefuteWrapper(Solver solver)
 {
     try
     {
       Refute(solver);
     }
     catch (ApplicationException e)
     {
       // TODO(user): Catch only fail exceptions.
       solver.ShouldFail();
     }
 }