We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d22bf31 commit de0e510Copy full SHA for de0e510
2 files changed
src/Exception/BlockSizeTooSmallException.php
@@ -0,0 +1,9 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
5
+namespace Endroid\QrCode\Exception;
6
7
+final class BlockSizeTooSmallException extends \Exception
8
+{
9
+}
src/Matrix/Matrix.php
@@ -4,6 +4,7 @@
namespace Endroid\QrCode\Matrix;
+use Endroid\QrCode\Exception\BlockSizeTooSmallException;
use Endroid\QrCode\RoundBlockSizeMode;
10
final readonly class Matrix implements MatrixInterface
@@ -43,7 +44,7 @@ public function __construct(
43
44
}
45
46
if ($blockSize < 1) {
- throw new \Exception('Too much data: increase image dimensions or lower error correction level');
47
+ throw new BlockSizeTooSmallException('Too much data: increase image dimensions or lower error correction level');
48
49
50
$this->blockSize = $blockSize;
0 commit comments