Lines Matching refs:error
4 …ng or analysis are represented using the `PhpParser\Error` exception class. In addition to an error
5 message, an error can also store additional information about the location the error occurred at.
7 …nformation is available depends on the origin of the error. At a minimum the start line of the err…
14 location of an error cannot always be determined. The methods for retrieving column information als…
15 the source code of the parsed file. An example for printing an error:
34 The error behavior of the parser (and other components) is controlled by an `ErrorHandler`. Wheneve…
35 encountered, `ErrorHandler::handleError()` is invoked. The default error handling strategy is `Erro…
36 which will immediately throw when an error is encountered.
48 foreach ($errorHandler->getErrors() as $error) {
49 // $error is an ordinary PhpParser\Error
58 The partial AST may contain `Expr\Error` nodes that indicate that an error occurred while parsing a…