Redirecting error messages
"Magnus Malm" <[email protected]> Sat, 12 Jan 2008 21:29:01 +0100
| Newsgroups | gmane.comp.ai.powerloom |
|---|---|
| Message-ID | <[email protected]> |
Hello I do not understand how the error messages are generated. They appear to go through some other stream than *standard-output*. (I have tried to bind both *standard-output* and *error-output* to a file but nothing is streamed to the file, the error messages are still printed to the REPL.) What I want to do is to capture all error (And warning) messages and redirect them to a string (for futher processing) but I do not understand the underlying code that generates these messages. Apparently, a stream is created with MAKE-STRING-OUTPUT-STREAM, but I have no idea when, or where, this stream is created, let alone the name of it. (It might be worth mentioning that I use the struct version of powerloom) Perhaps I am going the wrong way here but I have not found any documentation on how to handle exceptions, and wether or not exceptions are thrown when there's a parse error in a query for instance. I use LISP and only the API functions, s-retrieve, s-ask, etc. It is s-retrieve I use the most and would really like to be able to handle parse errors and make my own error handling for this (quite simply just send the entire error message to the user (who does not have the REPL infront of him/her :))). Thanks in advance, -- Magnus Malm _______________________________________________ powerloom-forum mailing list [email protected] http://mailman.isi.edu/mailman/listinfo/powerloom-forum