Problem catching some errors
Torbjörn Lager <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CA+Y3JZgncgWfoi9ZmxLPdEJKTsYAndE0ynSnBLx6V3PdqvCt8A@mail.gmail.com> |
Hi,
I notice that catch/3 doesn't catch permission errors calling
predicates such as use_module/1 and load_files/2. Eg:
?- catch(use_module('apps/test_2'), E, true).
ERROR: /Users/lager/Development/swish/apps/test_2.pl:3:
No permission to modify static procedure `read/2'
Is there a particular reason for that? Or is it a bug?
Best,
Torbjörn
--
Torbjörn Lager
Professor of General and Computational Linguistics
Department of Philosophy, Linguistics and Theory of Science
University of Gothenburg
Box 200, SE-405 30 Gothenburg, Sweden
Phone: +46317864962