__construct() __construct(string $message, array|integer $attributes = array()) Creates an Exception signifying a parse error. Parameters string $message Error message array|integer $attributes Attributes of node/token where error occurred (or start line of error -- deprecated)
getStartLine() getStartLine() : integer Gets the line the error starts in. Returns integer — Error start line
getEndLine() getEndLine() : integer Gets the line the error ends in. Returns integer — Error end line
getAttributes() getAttributes() : array Gets the attributes of the node/token the error occurred at. Returns array
setAttributes() setAttributes(array $attributes) Sets the attributes of the node/token the error occured at. Parameters array $attributes
setRawMessage() setRawMessage(string $message) Sets the line of the PHP file the error occurred in. Parameters string $message Error message
setStartLine() setStartLine(integer $line) Sets the line the error starts in. Parameters integer $line Error start line
hasColumnInfo() hasColumnInfo() : boolean Returns whether the error has start and end column information. For column information enable the startFilePos and endFilePos in the lexer options. Returns boolean
getStartColumn() getStartColumn(string $code) : integer Gets the start column (1-based) into the line where the error started. Parameters string $code Source code of the file Returns integer
getEndColumn() getEndColumn(string $code) : integer Gets the end column (1-based) into the line where the error ended. Parameters string $code Source code of the file Returns integer
updateMessage() updateMessage() Updates the exception message after a change to rawMessage or rawLine.