Attempts to resolve the veto condition by consulting the user.
Attempts to resolve the veto condition by consulting the user.
successful future if the situation is resolved, e.g. the user agrees to proceed with the operation. failed future if the veto is upheld, and the caller should abort the operation.
A trait representing an object that has an objection to a particular action. This objection is manifested through a human readable
vetoMessage
which would generally also be displayed in the GUI when callingtryResolveVeto
.For example, if trying to close a window that is in dirty state, calling
tryResolveVeto
will display the veto message in a dialog to the user, and the user can confirm the closure, which would result in atrue
return value, or abort the closure, which would result in afalse
return type.