| Catching program exceptions and compile errors [message #1149913]
||Tue, 22 October 2013 07:54
| Felix W
Registered: October 2013
We are developing an Eclipse plugin that reacts on compile-time errors and
runtime exceptions. Currently, we are only able to catch runtime exceptions,
and we do not now how to get hold of the compile errors.
Ideally, we would connect to something like an event bus and only react
on exceptions and compile errors (i.e. the stuff that shows up in the error window).
As no one in our team has any Eclipse experience, we are a little stuck here.
Currently we only catch exceptions and only via a workaround. We do that
by providing a class implementing the IConsoleLineTracker and monitoring
every "java" process spawned by Eclipse with it. That forces us to write a parser
to seperate exceptions from normal output.
Now, is there any more elegant way?
How are we supposed to catch the compile errors? They are not caught by our class,
as no "java" process is spawned.
Anything, really anything will help!
We are connecting to the console like this:
[Updated on: Tue, 22 October 2013 11:03]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01594 seconds