osdir.com
mailing list archive

Subject: Re: Verbose trapped error messages - msg#00140

List: lisp.clisp.general

Date: Prev Next Index Thread: Prev Next Index
> * In message <1032691720.2449.18.camel@work>
> * On the subject of "[clisp-list] Verbose trapped error messages"
> * Sent on 22 Sep 2002 22:48:40 +1200
> * Honorable Adam Warner <lists@xxxxxxxxxxxxxxxxx> writes:
>
> [4]> (handler-case
> (eval code)
> (serious-condition (error)
> (format t "EVAL error: ~S" error)))
> EVAL error: #<SYSTEM::SIMPLE-UNBOUND-VARIABLE #x20455345>

try (format t "EVAL error: ~A" error)

--
Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
Why do we want intelligent terminals when there are so many stupid users?




Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

Re: what should LOAD do when the FAS file is obsolete?

I implemented something now - please read <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/clisp/clisp/doc/impnotes.html?rev=HEAD&content-type=text/html#loadfile> and try CVS HEAD. comments are welcome. thanks. -- Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Never succeed from the first try - if you do, nobody will think it was hard.

Next Message by Date: click to view message preview

Re: what should LOAD do when the FAS file is obsolete?

I implemented something now - please read <http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/clisp/clisp/doc/impnotes.html?rev=HEAD&content-type=text/html#loadfile> and try CVS HEAD. comments are welcome. thanks. -- Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Never succeed from the first try - if you do, nobody will think it was hard. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf

Previous Message by Thread: click to view message preview

Verbose trapped error messages

Hi all, I'm just a little stuck on how to turn an error condition that I have trapped that looks like this: #<system::simple-unbound-variable #x203F499D> Into something meaningful like "variable TEST has no value at line xxx" I'm currently using this code: (handler-case (eval code) (serious-condition (error) (format t "EVAL error: ~S" error))) For example if I try this in CLISP: [1]> (+ A 1) *** - EVAL: variable A has no value Compare the error message above to: [3]> (setf code '(+ A 1)) (+ A 1) [4]> (handler-case (eval code) (serious-condition (error) (format t "EVAL error: ~S" error))) EVAL error: #<SYSTEM::SIMPLE-UNBOUND-VARIABLE #x20455345> NIL Many thanks, Adam ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf

Next Message by Thread: click to view message preview

Re: Verbose trapped error messages

> * In message <1032691720.2449.18.camel@work> > * On the subject of "[clisp-list] Verbose trapped error messages" > * Sent on 22 Sep 2002 22:48:40 +1200 > * Honorable Adam Warner <lists@xxxxxxxxxxxxxxxxx> writes: > > [4]> (handler-case > (eval code) > (serious-condition (error) > (format t "EVAL error: ~S" error))) > EVAL error: #<SYSTEM::SIMPLE-UNBOUND-VARIABLE #x20455345> try (format t "EVAL error: ~A" error) -- Sam Steingold (http://www.podval.org/~sds) running RedHat7.3 GNU/Linux <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> Why do we want intelligent terminals when there are so many stupid users? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by