Makes sure that Cypher only throws valid exception