You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
357 B
18 lines
357 B
<?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;
|
|
}
|
|
}
|