There are 8 utilities.
- coerce-to-condition v1.0
This function implements the semantics of CL condition designators. It makes a condition, given a
datum(which may be a symbol, format control, or condition) and a list of arguments
args. See CLHS 126.96.36.199 for more specifics.
default-typeis the type of objects that should be constructed when
datumis a format control.
supertypeis a type that should be a supertype of the types of all conditions returned by this function.
- required-argument v1.0
Signals an error for a missing argument of
name. Intended for use as an initialization form for structure and class-slots, and a default value for required keyword arguments.
- ignore-some-conditions v1.0
cl:ignore-errorsbut the (unevaluated)
conditionslist determines which specific conditions are to be ignored.
- unwind-protect-case v1.0
cl:unwind-protect, but you can specify the circumstances that the cleanup
clauses ::= (:NORMAL form*)* | (:ABORT form*)* | (:ALWAYS form*)*
Clauses can be given in any order, and more than one clause can be given for each circumstance. The clauses whose denoted circumstance occured, are executed in the order the clauses appear.
abort-flagis the name of a variable that will be bound to
protected-formaborted preemptively, and to
(unwind-protect-case () (protected-form) (:normal (format t "This is only evaluated if PROTECTED-FORM executed normally.~%")) (:abort (format t "This is only evaluated if PROTECTED-FORM aborted preemptively.~%")) (:always (format t "This is evaluated in either case.~%"))) (unwind-protect-case (aborted-p) (protected-form) (:always (perform-cleanup-if aborted-p)))