is to == in exception code comparison and repr