<?php
namespace Engine\GenDocument\TextProcessor\Exception;

/*
 * Thrown when we try to call an invalid function
 * */
class InvalidFunction extends \Exception
{
	public $functionName = '';
	public $functionParams = [];
	public $functionIndex = -1;

	public function __construct ($message, $functionName, $functionParams, $functionIndex)
	{
		$this->functionName = $functionName;
		$this->functionParams = $functionParams;
		$this->functionIndex = $functionIndex;

		parent::__construct($message);
	}
}

