|
From: | Per Bothner |
Subject: | Re: [Qexo-general] XQuery sandbox |
Date: | Thu, 23 Jan 2003 09:17:41 -0800 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021202 |
Ivelin Ivanov wrote:
Can you give me a hint how to detect and capture the compiler error, but not the java exceptions, so that I can return them instead of blank page?
Take a look at the loadSource (InPort port, Environment env) method in kawa/standard/load.java. Except where it says 'if (true)' you probably want to use the 'else' logic. And itstead of throwing a SyntaxException, you want to catching, and format it. -- --Per Bothner address@hidden http://www.bothner.com/per/
[Prev in Thread] | Current Thread | [Next in Thread] |