| 1 | <?php |
| 2 | declare (strict_types=1); |
| 3 | namespace MailPoetVendor\Doctrine\DBAL\SQL\Parser\Exception; |
| 4 | if (!defined('ABSPATH')) exit; |
| 5 | use MailPoetVendor\Doctrine\DBAL\SQL\Parser\Exception; |
| 6 | use RuntimeException; |
| 7 | use function preg_last_error; |
| 8 | use function preg_last_error_msg; |
| 9 | class RegularExpressionError extends RuntimeException implements Exception |
| 10 | { |
| 11 | public static function new() : self |
| 12 | { |
| 13 | return new self(preg_last_error_msg(), preg_last_error()); |
| 14 | } |
| 15 | } |
| 16 |