Property | Type | Description | |
---|---|---|---|
$attributes | |||
$rawMessage |
Method | Description | |
---|---|---|
__construct ( string $message, array | integer $attributes = [] ) | Creates an Exception signifying a parse error. | |
getAttributes ( ) : array | Gets the attributes of the node/token the error occurred at. | |
getEndColumn ( string $code ) : integer | Gets the end column (1-based) into the line where the error ended. | |
getEndLine ( ) : integer | Gets the line the error ends in. | |
getMessageWithColumnInfo ( $code ) | ||
getRawMessage ( ) : string | Gets the error message | |
getStartColumn ( string $code ) : integer | Gets the start column (1-based) into the line where the error started. | |
getStartLine ( ) : integer | Gets the line the error starts in. | |
hasColumnInfo ( ) : boolean | Returns whether the error has start and end column information. | |
setAttributes ( array $attributes ) | Sets the attributes of the node/token the error occured at. | |
setRawMessage ( string $message ) | Sets the line of the PHP file the error occurred in. | |
setStartLine ( integer $line ) | Sets the line the error starts in. |
Method | Description | |
---|---|---|
updateMessage ( ) | Updates the exception message after a change to rawMessage or rawLine. |
Method | Description | |
---|---|---|
toColumn ( $code, $pos ) |
public getAttributes ( ) : array | ||
return | array |
public getEndColumn ( string $code ) : integer | ||
$code | string | Source code of the file |
return | integer |
public getEndLine ( ) : integer | ||
return | integer | Error end line |
public getRawMessage ( ) : string | ||
return | string | Error message |
public getStartColumn ( string $code ) : integer | ||
$code | string | Source code of the file |
return | integer |
public getStartLine ( ) : integer | ||
return | integer | Error start line |
public hasColumnInfo ( ) : boolean | ||
return | boolean |
public setAttributes ( array $attributes ) | ||
$attributes | array |
public setRawMessage ( string $message ) | ||
$message | string | Error message |
public setStartLine ( integer $line ) | ||
$line | integer | Error start line |
protected updateMessage ( ) |