}
}
- throw new ReaderException("No barcode found");
+ throw ReaderException.getInstance();
}
/**
}
int end = row.getSize();
if (start >= end) {
- throw new ReaderException("Couldn't fully read a pattern");
+ throw ReaderException.getInstance();
}
boolean isWhite = !row.get(start);
int counterPosition = 0;
// If we read fully the last section of pixels and filled up our counters -- or filled
// the last counter but ran off the side of the image, OK. Otherwise, a problem.
if (!(counterPosition == numCounters || (counterPosition == numCounters - 1 && i == end))) {
- throw new ReaderException("Couldn't fully read a pattern");
+ throw ReaderException.getInstance();
}
}