Let's say, I am making a plugin which add a hook at the end of the hook array. However, this "last hook call" should never execute unless the operation was fully completed.
I guessed it was safe to assume that if a call to this last hook is made, then that means the operation was carried over since it never threw an error and the execution continued. However, if a hook rolls back a transaction but doesn't throw, the hooks are called as if nothing happened.
Is there a way to check the "status" of a transaction?