make-condition
make-condition type &rest slot-initializations → condition
Barmar: a condition type or condition type name ?
Barrett worried about the same thing. I think the intent was that it be a subtype of
condition, so I've required that explicitly. -kmp 3-Sep-91type—a type specifier (for a subtype of condition).
slot-initializations—an initialization argument list.
condition—a condition.
Constructs and returns a condition of type type using slot-initializations for the initial values of the slots. The newly created condition is returned.
(defvar *oops-count* 0) (setq a (make-condition 'simple-error :format-control "This is your ~:R error." :format-arguments (list (incf *oops-count*)))) → #<SIMPLE-ERROR 32245104> (format t "~&~A~%" a) ⊳ This is your first error. → NIL (error a) ⊳ Error: This is your first error. ⊳ To continue, type :CONTINUE followed by an option number: ⊳ 1: Return to Lisp Toplevel. ⊳ Debug>
None.
The set of defined condition types.
None.
define-condition, Section 9.1 (Condition System Concepts)
None.