home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2264 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.0 KB

  1. Path: sparky!uunet!convex!darwin.sura.net!mips!swrinde!elroy.jpl.nasa.gov!ames!agate!stanford.edu!lucid.com!karoshi!york
  2. From: york@oakland-hills.lucid.com (Bill York)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: need some help with conditions and CLIM
  5. Message-ID: <YORK.92Aug20135351@oakland-hills.lucid.com>
  6. Date: 20 Aug 92 18:53:51 GMT
  7. References: <CHYDE.92Aug20142411@pecos.ads.com>
  8. Sender: usenet@lucid.com
  9. Reply-To: York@Lucid.COM
  10. Distribution: comp
  11. Organization: Lucid, Inc.
  12. Lines: 13
  13. In-Reply-To: chyde@pecos.ads.com's message of Thu, 20 Aug 1992 19:24:11 GMT
  14.  
  15. In article <CHYDE.92Aug20142411@pecos.ads.com> chyde@pecos.ads.com (Clinton Hyde) writes:
  16.  
  17.    From: chyde@pecos.ads.com (Clinton Hyde)
  18.  
  19.    anyway, I would like to know how (if it's possible) to find out
  20.    programmatically (or is that automagically) what condition is
  21.    signalled when some piece of code does so.
  22.  
  23. You could try wrapping the following around the offending code
  24. (represented here is "(/ 3 0)").
  25.  
  26. (handler-case (/ 3 0)
  27.           (error (e) (format t "~&The condition ~S was signalled" e)))
  28.