(rontolisp) docs
← Macros

make-condition

(make-condition type &key initargs...)

Constructs a condition object of the given type — a CLOS-subset instance whose slots are filled from the initargs (missing slots take their :initform). The type must be a literal quoted symbol naming a type defined by define-condition or a seeded built-in like simple-error. The instance can be passed to error/signal (the condition-object designator) and tested with typecase.

CL-USER> (error (make-condition 'simple-error :format-control "something failed"))
Error: something failed