PluginProbe
JCH Optimize / trunk
JCH Optimize vtrunk
6.0.2 6.0.1 trunk 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.2.0 1.2.1 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.1.0 2.10.0 2.2.0 2.2.1 All 58 releases
jch-optimize / lib / src / Exception / PregErrorException.php

PregErrorException.php in JCH Optimize trunk, at lib/src/Exception/PregErrorException.php

37 lines 877 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * JCH Optimize - Performs several front-end optimizations for fast downloads
5 *
6 * @package jchoptimize/core
7 * @author Samuel Marshall <samuel@jch-optimize.net>
8 * @copyright Copyright (c) 2022 Samuel Marshall / JCH Optimize
9 * @license GNU/GPLv3, or later. See LICENSE file
10 *
11 * If LICENSE file missing, see <http://www.gnu.org/licenses/>.
12 */
13
14 namespace JchOptimize\Core\Exception;
15
16 use ErrorException;
17 use JchOptimize\Core\SystemUri\SystemUri;
18
19 use function defined;
20
21 use const E_WARNING;
22
23 defined('_JCH_EXEC') or die('Restricted access');
24
25 class PregErrorException extends ErrorException implements ExceptionInterface
26 {
27 public function __construct(
28 $message = "",
29 $code = 0,
30 $severity = E_WARNING
31 ) {
32 $message .= ': ' . SystemUri::currentUrl();
33
34 parent::__construct($message, $code, $severity);
35 }
36 }
37