I have a problem with some OSGI/RCP stuff related to exception management. I'm looking for strategies/thoughts on how exceptions can be best managed or what the most common ways of dealing with them are:
For example: we have an application with some extension points, and we have plugins for it. most plugins contribute perspectives and views and sometimes actions (in menu, toolbar and statusbar).
What is a good way of handling exceptions that: - plugins throw and must be dealt with by the application - runtime exceptions that the application throws that can be caught and reformatted for display with decent gui message - runtime exceptions that plugins cause and should be handled by the plugin?
Your question is not really related to OSGI in particular but to exception handling in general. Basically you're looking for a solution to your particular work or non-work project. You should probably have a look at the tutorial. You also want to look more deeply into eclipse/swt javadocs to know the cause of some specific exceptions. There are different kind of exceptions that can occur in your program and when something happens "you" should decide "if" you'll "handle" it and "how".