Skip to main content

Reusing com.biomatters.plugins.extractAnnotations.ExtractAnnotationsOperation with one error and multiple good results cancels whole operation

Comments

2 comments

  • Matthew Cheung

    Hi Stephan,

    How is it currently failing.  My guess is that the operation is throwing a DocumentOperationException.  You could catch the exception inside your loop, add an empty list at that point and then continue.

    If you do that then you might want to keep track of which ones failed so you can tell the user afterwards.

    Cheers,
    Matthew

    0
  • Stephan Janosch

    Thanks for the answer!

    Indeed ExtractAnnotationsOperation throws an exception. Catching it solves the problem.

    Thanks for give me the correct hint!

     

    0

Please sign in to leave a comment.