public static function fromQuery(QueryInterface $query)
    {
        $name = substr(strrchr(get_class($query), '\\'), 1);

        $message = 'No matching query handler found: ' . $name;

        return new self($message);
    }
public static function fromQuery(QueryInterface $query)
    {
        $name = substr(strrchr(get_class($query), '\\'), 1);

        $message = 'No matching query handler found: ' . $name;

        return new self($message);
    }
@param QueryInterface $query

@return self