That will generate the error, but it needs to be handled individually by each caller. There's no generic "generate an error message for this page that allows the user to resubmit the form" function.
They don't need to resubmit the whole form, just the summary. Could a generic function give them the chance to change the summary and just pass all the rest of the fields through untouched?