Rolling back transactions via transaction listener?

Alex Vincent <[email protected]>
Newsgroups gmane.comp.mozilla.devel.editor
Message-ID <[email protected]>
I've been thinking for a while that if a nsITransaction does something 
it's not supposed to do, I'd like to cancel the transaction and undo it 
right away.  Something like:

didDo: function didDo(aTxMgr, aTxn, aResult) {
   if (/* something unexpected */) {
     aTxMgr.undoTransaction();
   }
}

Is there any reason that a transaction listener should not do this?

Alex Vincent
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.