AlgoliaSearch\Client::invalidOptions PHP Method

invalidOptions() protected method

throw clear Exception when bad curl option is set.
protected invalidOptions ( array $curlOptions = [], string $errorMsg = '' )
$curlOptions array
$errorMsg string add specific message for disambiguation
    protected function invalidOptions(array $curlOptions = array(), $errorMsg = '')
    {
        throw new \OutOfBoundsException(sprintf('AlgoliaSearch %s options keys are invalid. %s given. error message : %s', static::CURLOPT, Json::encode($curlOptions), $errorMsg));
    }