C++: ITFReader.cpp was throwing wrong exception
[zxing.git] / cpp / core / src / zxing / oned / ITFReader.cpp
index 4464326..95e7a1c 100644 (file)
@@ -72,7 +72,7 @@ namespace zxing {
                        int* endRange;
                        try {
                                endRange = decodeEnd(row);
-                       } catch (Exception e) {
+                       } catch (ReaderException e) {
                                delete [] startRange;
                                throw e;
                        }