comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » JAVA Bridge Error Handling Question
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
JAVA Bridge Error Handling Question [message #67400] Mon, 27 July 2009 11:15
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I have a JAVA Bridge error handling question.

I've written an IDL object that is going to be called
from a JAVA program. There are some methods that are
going to be called directly from JAVA and some methods
that are "internal" IDL methods (that is, methods of
the object I have written, but not meant to be called
directly from JAVA).

In my case, a JAVA called method calls an IDL internal
method, which is (apparently) causing an error. The
internal method has it's own catch error handler that
closes up some open files, etc., and then returns to
the caller of the method, which is the JAVA called
method, with the error condition still in place.
But, unfortunately, my JAVA called method doesn't
seem to be aware of this error condition, because it doesn't
generate an error that can be trapped by the JAVA program.

It seems as though the only error I can actually trap in
the JAVA program is a direct error in the JAVA called method.
For example, if my internal routine returns with an error
condition, I could "trap" that error by issuing a Message
command in the JAVA called method. But I would prefer not
to have to trap the error in this way.

Is there another way to trap the internal method error in
the JAVA program?

Thanks,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: multiple linear regression
Next Topic: adding lines of an image together

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 16:12:18 PDT 2025

Total time taken to generate the page: 1.44062 seconds