ILIAS
release_5-2 Revision v5.2.25-18-g3f80b82851
|
Exception class thrown when an error occurs during parsing. More...
Public Member Functions | |
__construct ($message, $parsedLine=-1, $snippet=null, $parsedFile=null, \Exception $previous=null) | |
Constructor. More... | |
getSnippet () | |
Gets the snippet of code near the error. More... | |
setSnippet ($snippet) | |
Sets the snippet of code near the error. More... | |
getParsedFile () | |
Gets the filename where the error occurred. More... | |
setParsedFile ($parsedFile) | |
Sets the filename where the error occurred. More... | |
getParsedLine () | |
Gets the line where the error occurred. More... | |
setParsedLine ($parsedLine) | |
Sets the line where the error occurred. More... | |
Private Member Functions | |
updateRepr () | |
Private Attributes | |
$parsedFile | |
$parsedLine | |
$snippet | |
$rawMessage | |
Exception class thrown when an error occurs during parsing.
Definition at line 19 of file ParseException.php.
Symfony\Component\Yaml\Exception\ParseException::__construct | ( | $message, | |
$parsedLine = -1 , |
|||
$snippet = null , |
|||
$parsedFile = null , |
|||
\Exception | $previous = null |
||
) |
Constructor.
string | $message | The error message |
int | $parsedLine | The line where the error occurred |
int | $snippet | The snippet of code near the problem |
string | $parsedFile | The file name where the error occurred |
\Exception | $previous | The previous exception |
Definition at line 35 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$parsedFile, Symfony\Component\Yaml\Exception\ParseException\$parsedLine, Symfony\Component\Yaml\Exception\ParseException\$snippet, and Symfony\Component\Yaml\Exception\ParseException\updateRepr().
Symfony\Component\Yaml\Exception\ParseException::getParsedFile | ( | ) |
Gets the filename where the error occurred.
This method returns null if a string is parsed.
Definition at line 76 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$parsedFile.
Symfony\Component\Yaml\Exception\ParseException::getParsedLine | ( | ) |
Gets the line where the error occurred.
Definition at line 98 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$parsedLine.
Symfony\Component\Yaml\Exception\ParseException::getSnippet | ( | ) |
Gets the snippet of code near the error.
Definition at line 52 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$snippet.
Symfony\Component\Yaml\Exception\ParseException::setParsedFile | ( | $parsedFile | ) |
Sets the filename where the error occurred.
string | $parsedFile | The filename |
Definition at line 86 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$parsedFile, and Symfony\Component\Yaml\Exception\ParseException\updateRepr().
Symfony\Component\Yaml\Exception\ParseException::setParsedLine | ( | $parsedLine | ) |
Sets the line where the error occurred.
int | $parsedLine | The file line |
Definition at line 108 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$parsedLine, and Symfony\Component\Yaml\Exception\ParseException\updateRepr().
Referenced by Symfony\Component\Yaml\Parser\parse(), and Symfony\Component\Yaml\Parser\parseValue().
Symfony\Component\Yaml\Exception\ParseException::setSnippet | ( | $snippet | ) |
Sets the snippet of code near the error.
string | $snippet | The code snippet |
Definition at line 62 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$snippet, and Symfony\Component\Yaml\Exception\ParseException\updateRepr().
Referenced by Symfony\Component\Yaml\Parser\parse(), and Symfony\Component\Yaml\Parser\parseValue().
|
private |
Definition at line 115 of file ParseException.php.
References Symfony\Component\Yaml\Exception\ParseException\$rawMessage.
Referenced by Symfony\Component\Yaml\Exception\ParseException\__construct(), Symfony\Component\Yaml\Exception\ParseException\setParsedFile(), Symfony\Component\Yaml\Exception\ParseException\setParsedLine(), and Symfony\Component\Yaml\Exception\ParseException\setSnippet().
|
private |
Definition at line 21 of file ParseException.php.
Referenced by Symfony\Component\Yaml\Exception\ParseException\__construct(), Symfony\Component\Yaml\Exception\ParseException\getParsedFile(), and Symfony\Component\Yaml\Exception\ParseException\setParsedFile().
|
private |
Definition at line 22 of file ParseException.php.
Referenced by Symfony\Component\Yaml\Exception\ParseException\__construct(), Symfony\Component\Yaml\Exception\ParseException\getParsedLine(), and Symfony\Component\Yaml\Exception\ParseException\setParsedLine().
|
private |
Definition at line 24 of file ParseException.php.
Referenced by Symfony\Component\Yaml\Exception\ParseException\updateRepr().
|
private |
Definition at line 23 of file ParseException.php.
Referenced by Symfony\Component\Yaml\Exception\ParseException\__construct(), Symfony\Component\Yaml\Exception\ParseException\getSnippet(), and Symfony\Component\Yaml\Exception\ParseException\setSnippet().