Anchor.php
2 years ago
OutputException.php
4 years ago
ParserState.php
2 years ago
SourceException.php
4 years ago
UnexpectedEOFException.php
4 years ago
UnexpectedTokenException.php
4 years ago
index.php
3 years ago
SourceException.php
20 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Sabberworm\CSS\Parsing; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class SourceException extends \Exception |
| 5 | { |
| 6 | private $iLineNo; |
| 7 | public function __construct($sMessage, $iLineNo = 0) |
| 8 | { |
| 9 | $this->iLineNo = $iLineNo; |
| 10 | if (!empty($iLineNo)) { |
| 11 | $sMessage .= " [line no: {$iLineNo}]"; |
| 12 | } |
| 13 | parent::__construct($sMessage); |
| 14 | } |
| 15 | public function getLineNo() |
| 16 | { |
| 17 | return $this->iLineNo; |
| 18 | } |
| 19 | } |
| 20 |