ObjectEdit: add hook to customize exceptions handling during commit