4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\ExpressionLanguage;
14 class SyntaxError extends \LogicException
16 public function __construct($message, $cursor = 0, $expression = '')
18 $message = sprintf('%s around position %d', $message, $cursor);
20 $message = sprintf('%s for expression `%s`', $message, $expression);
24 parent::__construct($message);