• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

exception management strategies osgi

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

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?

I'd sincerely appreciate any ideas/thoughts.

best,

Munaf
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".
 
Time is the best teacher, but unfortunately, it kills all of its students - Robin Williams. tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic