class ParseException extends RuntimeException
Exception class thrown when an error occurs during parsing.
| __construct(string $message, int $parsedLine = -1, string $snippet = null, string $parsedFile = null, Exception $previous = null) | ||
| string | getSnippet() Gets the snippet of code near the error. | |
| setSnippet(string $snippet) Sets the snippet of code near the error. | ||
| string | getParsedFile() Gets the filename where the error occurred. | |
| setParsedFile(string $parsedFile) Sets the filename where the error occurred. | ||
| int | getParsedLine() Gets the line where the error occurred. | |
| setParsedLine(int $parsedLine) Sets the line where the error occurred. |
| string | $message | The error message |
| int | $parsedLine | The line where the error occurred |
| string | $snippet | The snippet of code near the problem |
| string | $parsedFile | The file name where the error occurred |
| Exception | $previous | The previous exception |
Gets the snippet of code near the error.
| string | The snippet of code |
Sets the snippet of code near the error.
| string | $snippet | The code snippet |
Gets the filename where the error occurred.
This method returns null if a string is parsed.
| string | The filename |
Sets the filename where the error occurred.
| string | $parsedFile | The filename |
Gets the line where the error occurred.
| int | The file line |
Sets the line where the error occurred.
| int | $parsedLine | The file line |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Yaml/Exception/ParseException.html