public function __construct($keyword, \Exception $previous = null) { parent::__construct(sprintf('Value for keyword token not found, constant "%s" is not defined', $keyword), 0, $previous); $this->keyword = $keyword; }