home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!cs.utexas.edu!zaphod.mps.ohio-state.edu!swrinde!mips!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.lang.lisp
- Subject: Re: need some help with conditions and CLIM
- Message-ID: <171ngoINNebj@early-bird.think.com>
- Date: 21 Aug 92 03:22:00 GMT
- References: <CHYDE.92Aug20142411@pecos.ads.com> <YORK.92Aug20135351@oakland-hills.lucid.com>
- Distribution: comp
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 18
- NNTP-Posting-Host: gandalf.think.com
-
- In article <YORK.92Aug20135351@oakland-hills.lucid.com> York@Lucid.COM writes:
- >(handler-case (/ 3 0)
- > (error (e) (format t "~&The condition ~S was signalled" e)))
-
- Be careful how you use this information. The condition type that's
- signalled is often more specific than the type you want to set a handler
- for. For instance, on Lisp Machines many of the error types have a subtype
- that's used when the condition is signalled by a hardware trap, but when
- you're writing a handler you don't usually care whether it's signalled by
- hardware or software. Once you find out the condition type that's
- signalled you'll probably want to use a class browser or something like it
- to see the superclass hierarchy, to decide which class you should handle.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-