Skip to content

Commit 7febf22

Browse files
committed
Added exception class
1 parent f3181c7 commit 7febf22

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/Exception/SqlException.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Mobicms\Testutils\Exception;
6+
7+
final class SqlException extends \RuntimeException
8+
{
9+
}

src/SqlDumpLoader.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Mobicms\Testutils;
66

77
use Mobicms\Testutils\Exception\MissingFileException;
8+
use Mobicms\Testutils\Exception\SqlException;
89
use PDO;
910
use PDOException;
1011

@@ -62,7 +63,7 @@ private function splitSql(string $sql): array
6263

6364
if ($split === false) {
6465
// @codeCoverageIgnoreStart
65-
throw new \RuntimeException('Unable to split SQL');
66+
throw new SqlException('Unable to split SQL');
6667
// @codeCoverageIgnoreEnd
6768
}
6869

0 commit comments

Comments
 (0)