Added the ability to track who is throwing exceptions and how often in the core libra...
[zxing.git] / javase / src / com / google / zxing / client / j2se / CommandLineRunner.java
index a607cd6..f9ccf7c 100644 (file)
@@ -200,6 +200,10 @@ public final class CommandLineRunner {
     } catch (ReaderException e) {
       System.out.println(uri.toString() + ": No barcode found");
       return null;
+    } finally {
+      // Uncomment these lines when turning on exception tracking in ReaderException.
+      //System.out.println("Threw " + ReaderException.getExceptionCountAndReset() + " exceptions");
+      //System.out.println("Throwers:\n" + ReaderException.getThrowersAndReset());
     }
   }