I was under the impression that I could detect CAS errors with something like this:
(if (= (:cognitect.anomalies/category (ex-data t)) :cognitect.anomalies/conflict) ...)
But with Datomic
0.9.5661, I need to do this:
(if (= :db.error/cas-failed (:db/error (ex-data (.getCause e)))) ...)
Was the anomaly keys introduced in a later version? Am I going to encounter an issue when I upgrade to a later version of Datomic?