|
|
@@ -13,7 +13,6 @@
|
|
|
namespace chillerlan\QRCode\Data;
|
|
|
|
|
|
use chillerlan\QRCode\BitBuffer;
|
|
|
-use chillerlan\QRCode\QRCodeException;
|
|
|
use chillerlan\QRCode\QRConst;
|
|
|
|
|
|
/**
|
|
|
@@ -34,7 +33,7 @@ class Kanji extends QRDataBase implements QRDataInterface{
|
|
|
/**
|
|
|
* @param \chillerlan\QRCode\BitBuffer $buffer
|
|
|
*
|
|
|
- * @throws \chillerlan\QRCode\QRCodeException
|
|
|
+ * @throws \chillerlan\QRCode\Data\QRCodeDataException
|
|
|
*/
|
|
|
public function write(BitBuffer &$buffer){
|
|
|
|
|
|
@@ -49,7 +48,7 @@ class Kanji extends QRDataBase implements QRDataInterface{
|
|
|
$c -= 0xC140;
|
|
|
}
|
|
|
else{
|
|
|
- throw new QRCodeException('illegal char at '.($i + 1).' ('.$c.')');
|
|
|
+ throw new QRCodeDataException('illegal char at '.($i + 1).' ('.$c.')');
|
|
|
}
|
|
|
|
|
|
$buffer->put((($c >> 8)&0xff) * 0xC0 + ($c&0xff), 13);
|
|
|
@@ -57,7 +56,7 @@ class Kanji extends QRDataBase implements QRDataInterface{
|
|
|
}
|
|
|
|
|
|
if($i < $this->dataLength){
|
|
|
- throw new QRCodeException('illegal char at '.($i + 1));
|
|
|
+ throw new QRCodeDataException('illegal char at '.($i + 1));
|
|
|
}
|
|
|
|
|
|
}
|