lispdoc - results for handler-bind |
(handler-bind bindings &body forms) | Function: (HANDLER-BIND ( {(type handler)}* ) body) Executes body in a dynamic context where the given handler bindings are in effect. Each handler must take the condition being signalled as an argument. The bindings are searched first to last in the event of a signalled condition.
|
| Mentioned in: CLtL2 - 29.3.10. Generalized Restarts CLtL2 - 29.3.12. Serious Conditions CLtL2 - 29.3.15. Signaling Conditions CLtL2 - 29.3.3. Handling Conditions CLtL2 - 29.3.8. Restart Functions CLtL2 - 29.4.4. Handling Conditions CLtL2 - 29.4.7. Establishing Restarts HyperSpec - Macro HANDLER-BIND PCL - restarts PCL - the pretty printer backend Successful Lisp - assert | |
(handler-case form &rest cases) | Function: (HANDLER-CASE form { (type ([var]) body) }* ) Execute FORM in a context with handlers established for the condition types. A peculiar property allows type to be :NO-ERROR. If such a clause occurs, and form returns normally, all its values are passed to this clause as if by MULTIPLE-VALUE-CALL. The :NO-ERROR clause accepts more than one var specification.
|
Example:(defun read-frame (frame-type in) (handler-case (read-value frame-type in) (in-padding nil nil))) | Mentioned in: CLtL2 - 29.3.10. Generalized Restarts CLtL2 - 29.3.12. Serious Conditions CLtL2 - 29.3.2. Trapping Errors CLtL2 - 29.3.3. Handling Conditions CLtL2 - 29.4.4. Handling Conditions HyperSpec - Macro HANDLER-CASE PCL - condition handlers PCL - detecting tag padding PCL - implementing shoutcast PCL - other uses for conditions PCL - restarts |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |