Exception class thrown when an error occurs during parsing.
author |
Fabien Potencier |
---|---|
api |
__construct(string $message, integer $parsedLine = -1, integer $snippet = null, $parsedFile = null, \Symfony\Component\Yaml\Exception\Exception $previous = null)
string
The error message
integer
The line where the error occurred
integer
The snippet of code near the problem
\Symfony\Component\Yaml\Exception\Exception
The previous exception
getSnippet() : string
string
The snippet of code
setSnippet($snippet)
getParsedFile() : string
This method returns null if a string is parsed.
string
The filename
setParsedFile(string $parsedFile)
string
The filename
getParsedLine() : integer
integer
The file line
setParsedLine(integer $parsedLine)
integer
The file line
updateRepr()
parsedFile :
parsedLine :
snippet :
rawMessage :