Added a thrown exception when a transaction fails to be applied