### What you wanted to do I needed to catch those occasional and unpredictable errors and retry if they happen. ### What you actually did I parsed the error message and if it matched the error string, modulo the numbers, I ran the query again. ### Why that wasn't great, with examples Parsing an error string is : - not efficient: It takes time to parse a string with a regexp matching - not durable: The string message may change in the future ### Any external references to support your case This request has been discussed in [that thread](https://discuss.dgraph.io/t/how-to-catch-errors-like-readts-60534-less-than-mints/3355).