Error handling in write-actions

One is supposed to make modifications to documents using a Runnable and Application.runWriteAction. However, most document modification methods throw an IncorrectOperatingException and there may be other sources of exceptions in the code wrapped by the Runnable. What is the recommended way of handling errors which occur in write actions? Should they be rethrown as RuntimeExceptions? Are there better ways of handling them? Any suggestions would be welcome.

Please sign in to leave a comment.