Changeset 333


Ignore:
Timestamp:
Jan 19, 2004, 4:33:13 PM (21 years ago)
Author:
Gary Byers
Message:

Define (and signal) some new condition classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/l1-error-system.lisp

    r300 r333  
    127127  ((expected-type :initform '(satisfies proper-list-p) :reader type-error-expected-type)))
    128128
     129(define-condition cant-construct-arglist (improper-list)
     130  ())
    129131
    130132
     
    245247             (format s "Can't throw to tag ~s" (slot-value c 'tag)))))
    246248
     249(define-condition inactive-restart (control-error)
     250  ((restart-name :initarg :restart-name))
     251  (:report (lambda (c s)
     252             (format s "Restart ~s is not active" (slot-value c 'restart-name)))))
    247253
    248254(define-condition lock-protocol-error (control-error)
     
    479485      (when (or (eq restart name) (eq (%restart-name restart) name))
    480486        (return-from %active-restart (values restart cluster)))))
    481   (error "Restart ~S is not active." name))
     487  (error 'inactive-restart :restart-name name))
    482488
    483489(defun invoke-restart (restart &rest values)
     
    891897        (cons $xaccessnth 'sequence-index-type-error)
    892898        (cons $ximproperlist 'improper-list)
     899        (cons $xnospread 'cant-construct-arglist)
    893900        ))
    894901
Note: See TracChangeset for help on using the changeset viewer.