Ejemplo n.º 1
0
 private static void throwFirstError(TwoDEval areaEval) throws EvaluationException {
   int height = areaEval.getHeight();
   int width = areaEval.getWidth();
   for (int rrIx = 0; rrIx < height; rrIx++) {
     for (int rcIx = 0; rcIx < width; rcIx++) {
       ValueEval ve = areaEval.getValue(rrIx, rcIx);
       if (ve instanceof ErrorEval) {
         throw new EvaluationException((ErrorEval) ve);
       }
     }
   }
 }