CLCS
Macro

with-condition-restarts

with-condition-restarts condition-form restarts-form {form}*
{result}*

Arguments and Values

condition-forma form; evaluated to produce a condition.
conditiona condition object resulting from the evaluation of condition-form.
restart-forma form; evaluated to produce a restart-list.
restart-lista list of restart objects resulting from the evaluation of restart-form.
formsan implicit progn; evaluated.
resultsthe values returned by forms.

Description

First, the condition-form and restarts-form are evaluated in normal left-to-right order; the primary values yielded by these evaluations are respectively called the condition and the restart-list.

Next, the forms are evaluated in a dynamic environment in which each restart in restart-list is associated with the condition. See Associating a Restart with a Condition.

See Also

restart-case

Notes

Usually this macro is not used explicitly in code, since restart-case handles most of the common cases in a way that is syntactically more concise.