Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6131

UIMA Ruta SeedLexer throws Error instead of exception

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0ruta, 2.8.0ruta
    • Ruta
    • None

    Description

      The SeedLexer and possibly other related classes used by Ruta throw java.lang.Error instead of java.lang.Exception. This is usually only thrown by the JVM when it’s really impossible to continue the process, e.g. out of memory, linkage errors or fatal VM failures, and it therefore not meant to be caught under normal circumstances, so most runtime environment don't capture these. This can therefore cause the whole process to fail instead of just the document being processed.

      It would therefore be preferable if these components throw a type of java.lang.Exception instead, so that the process can proceed with the next document without the need to hook into the runtime core and catch java.lang.Error. The errors are also not subclassed, so it's awkward to distinguish them by checking for the message string itself.

      Attachments

        Activity

          People

            pkluegl Peter Klügl
            mjuric Mario Juric
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: