A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-851.htm below:

with-action-item-error-handling

Description

The macro with-action-item-error-handling executes the body with action-list-var and action-item-var are bound to the action list and item respectively. If ignore-errors-p is set to t then errors are handled. The behavior of the handler is to signal a warning in which the action-list, item and original error are all reported; execution then continues with the next action-item.

Example
(defun my-execution-function (the-action-list 
                              other-args
                              &key ignore-errors-p
                              &allow-other-keys)
    (with-action-list-mapping (the-action-list
                               an-action-item
                               action-item-data)
      (with-action-item-error-handling (the-action-list
                                        an-action-item
                                        ignore-errors-p)
        (do-something-interesting-first)
        (apply (car action-item-data) other-args (cdr action-item-data)))))

If this function was invoked with the keyword argument :ignore-errors-p t, and an error was signaled while executing the body-form(s) for one of the action-items, then a warning such as:

Warning: Got an error 'The variable *PREV-STATE* is 
unbound.' while executing action "Initialize State" in list "Startup Inits".

would be signaled and execution would continue with the next action-item.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4