[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Attaching context info to an error
From: |
Gerd Möllmann |
Subject: |
Re: Attaching context info to an error |
Date: |
Fri, 22 Dec 2023 07:50:35 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The question is: where should we put this "context" info.
>
> One possibility is to do something like the following:
>
>
> (defun load (file ...)
> (handler-bind ((error (lambda (err)
> (signal 'error-during-load
> (cons file err)))))
> ...))
I'm just guessing - so the argument ERR of the handler function is not a
`condition' object of some kind, in the CL sense? What is it?
Or can I look myself somewhere?
> ...
> Any other idea how/where we could attach that info?
I don't have a good idea either, I'm afraid.