Fork me on GitHub

How can I distinguish between a :db.fn/cas exception thrown when the old value is wrong, and some other exception that might occur? Even better, is there a quiet way of doing this? I want to generate a UUID the first time that transaction is called and then keep the same value.