[pylucene-dev] Exceptions in PyLucene

João Rodrigues anaryin at gmail.com
Wed Apr 9 09:42:57 PDT 2008


Hello all, I'm wanting to build a script that, considering the RAM of the
user, it either chooses to use a RAM directory or a FS one. However, the
method I'm using right now is trying to create the JVM with 2g maxheap size,
and if it fails, catching the exception, evaluating it, and if it is because
of not enough RAM, reducing RAM to my application minimum required and
creating an FS directory. Problem is, I can't understand how to catch the
exception... can you give me a sample code? I've read that ou have
implemented a class of lucene.JavaErrors, but I really can't see how it
works...

Thanks in advance,

João Rodrigues
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20080409/759de7c9/attachment.htm


More information about the pylucene-dev mailing list