mirror of
https://github.com/moodle/moodle.git
synced 2025-05-07 00:36:01 +02:00
18 lines
357 B
PHP
18 lines
357 B
PHP
<?php
|
|
|
|
namespace Sabberworm\CSS\Parsing;
|
|
|
|
class SourceException extends \Exception {
|
|
private $iLineNo;
|
|
public function __construct($sMessage, $iLineNo = 0) {
|
|
$this->iLineNo = $iLineNo;
|
|
if (!empty($iLineNo)) {
|
|
$sMessage .= " [line no: $iLineNo]";
|
|
}
|
|
parent::__construct($sMessage);
|
|
}
|
|
|
|
public function getLineNo() {
|
|
return $this->iLineNo;
|
|
}
|
|
} |