Error messages would be in the form of AnnotatorProcessExceptions, which you already catch. It might be a good idea to catch Exceptions in general at that point (I mean unchecked exceptions as well). Maybe you do that elsewhere. You can look at the corresponding code in CVD, if you like. It's somewhat organically grown, but it sort of works. Project uimaj-tools, class org.apache.uima.tools.cvd.MainFrame, methods internalRunAE() and handleException().
--Thilo Jörn Kottmann (JIRA) wrote: > [ > https://issues.apache.org/jira/browse/UIMA-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510474 > ] > > Jörn Kottmann commented on UIMA-481: > ------------------------------------ > > Can someone please take a look at the code. Its in two classes one for the > annotators > and one for the consumers. > > The classes are: > org.apache.uima.caseditor.ui.action.ConsumerActionRunnable > org.apache.uima.caseditor.ui.action.AnnotatorActionRunnable > > How can it get back error messages form the uima framework ? > >> Cas Editor: Error reporting for cas processor >> --------------------------------------------- >> >> Key: UIMA-481 >> URL: https://issues.apache.org/jira/browse/UIMA-481 >> Project: UIMA >> Issue Type: Improvement >> Components: Sandbox >> Reporter: Jörn Kottmann >> Assignee: Jörn Kottmann >> Priority: Minor >> >> The Cas Editor can launch an annotator or a cas consumer, >> but it does not shows an error message if something goes wrong. >
