# 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`](croct-exception).

## Example

This example falls back to a default when the query cannot be evaluated:

```php
<?php
use Croct\Plug\Croct;
use Croct\Plug\Exception\EvaluationException;

$croct = Croct::fromDotenv();

try {
    $returning = $croct->evaluate('user is returning') === true;
} catch (EvaluationException $error) {
    $returning = false;
}
```
