warning
warning Condition Type
Class Precedence List:
warning, condition, t
Description:
The type warning consists of all types of warnings.
See Also:
style-warningExpanded Reference: warning
The warning Condition Type
warning is the base type for all warning conditions. Warnings are conditions that are worth noting but do not require the program to stop. When signaled via warn and not handled, they are printed to *error-output*.
(subtypep 'warning 'condition)
=> T
=> T
Warning Is Not a Serious Condition
Warnings are not subtypes of serious-condition or error.
(subtypep 'warning 'serious-condition)
=> NIL
=> T
Handling All Warnings
(handler-bind ((warning (lambda (c)
(declare (ignore c))
(muffle-warning))))
(warn "First")
(warn "Second")
:done)
=> :DONE
Standard Warning Subtypes
(subtypep 'simple-warning 'warning)
=> T
=> T
(subtypep 'style-warning 'warning)
=> T
=> T