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

The JCas getView method throws CasRuntimeException not CasException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 2.10.2SDK, 3.0.0SDK
    • None
    • Core Java Framework
    • None

    Description

      Code that uses JCas getView expects CasException to be thrown if a view is missing, but instead the underlying CAS.getView method throws CasRuntimeException.

      Either the code or the Javadocs should be fixed.  Since a missing view is not uncommon, throwing an unchecked exception is not very useful.  Making the framework code match the Javadocs should have tminimal impact on existing user code.

       

      Attachments

        Activity

          People

            schor Marshall Schor
            burn Burn L. Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: