EvaluationException
Learn how to handle the error thrown when a query cannot be evaluated.
This exception is thrown when a query is invalid or cannot be evaluated. It implements CroctException.
Example
This example falls back to a default when the query cannot be evaluated:
1234567891011
<?phpuse Croct\Plug\Croct;use Croct\Plug\Exception\EvaluationException;
$croct = Croct::fromDotenv();
try { $returning = $croct->evaluate('user is returning') === true;} catch (EvaluationException $error) { $returning = false;}