3
* An exception to be thrown when a DocCommentParser finds an anomaly in a
9
* @package PHP_CodeSniffer
10
* @author Greg Sherwood <gsherwood@squiz.net>
11
* @author Marc McIntyre <mmcintyre@squiz.net>
12
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
13
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
14
* @link http://pear.php.net/package/PHP_CodeSniffer
18
* An exception to be thrown when a DocCommentParser finds an anomaly in a
22
* @package PHP_CodeSniffer
23
* @author Greg Sherwood <gsherwood@squiz.net>
24
* @author Marc McIntyre <mmcintyre@squiz.net>
25
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
26
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
27
* @version Release: 1.5.4
28
* @link http://pear.php.net/package/PHP_CodeSniffer
30
class PHP_CodeSniffer_CommentParser_ParserException extends Exception
34
* The line where the exception occurred, in relation to the doc comment.
42
* Constructs a DocCommentParserException.
44
* @param string $message The message of the exception.
45
* @param int $line The position in comment where the error occurred.
46
* A position of 0 indicates that the error occurred
47
* at the opening line of the doc comment.
49
public function __construct($message, $line)
51
parent::__construct($message);
58
* Returns the line number within the comment where the exception occurred.
62
public function getLineWithinComment()
66
}//end getLineWithinComment()