Unify handling of EC level between encoder and decoder
[zxing.git] / core / src / com / google / zxing / qrcode / decoder / Mode.java
index 9e9947b..4506423 100644 (file)
@@ -22,7 +22,7 @@ import com.google.zxing.ReaderException;
  * <p>See ISO 18004:2006, 6.4.1, Tables 2 and 3. This enum encapsulates the various modes in which
  * data can be encoded to bits in the QR code standard.</p>
  *
- * @author srowen@google.com (Sean Owen)
+ * @author Sean Owen
  */
 final class Mode {
 
@@ -67,7 +67,7 @@ final class Mode {
       case 0x9:
         return FNC1_SECOND_POSITION;
       default:
-        throw new ReaderException("Unsupported mode bits: " + bits);
+        throw ReaderException.getInstance();
     }
   }