You are here

public function ParseException::getSnippet in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/symfony/yaml/Symfony/Component/Yaml/Exception/ParseException.php \Symfony\Component\Yaml\Exception\ParseException::getSnippet()

Gets the snippet of code near the error.

Return value

string The snippet of code

File

vendor/symfony/yaml/Exception/ParseException.php, line 50

Class

ParseException
Exception class thrown when an error occurs during parsing.

Namespace

Symfony\Component\Yaml\Exception

Code

public function getSnippet() {
  return $this->snippet;
}