• File: SourceException.php
  • Full Path: /home/masbinta/public_html/core/vendor/sabberworm/php-css-parser/lib/Sabberworm/CSS/Parsing/SourceException.php
  • File size: 357 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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;
	}
}