(rontolisp) docs
← Macros

cerror

(cerror continue-format-control datum arg...)

Signals a continuable error like error, with the same condition-designator surface: datum is a format control string (with arg... as format arguments) or a condition class name (with arg... as initargs). A continue restart described by continue-format-control is established around the signal, so a handler-bind handler — or anything else running at the signal point — can call continue (or invoke-restart the continue restart) to make the cerror return nil and execution resume past it. When nothing invokes the restart, cerror behaves exactly like error: an uncaught one aborts, an enclosing handler-case catches it.

Uncaught, it aborts like error (shown statically):

(cerror "Ignore the error." "bad value: ~a" 42)
(cerror "Skip this character." 'bad-input :position 7)