[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] Is there a way to capture BundleExceptions?
|
Hi Eduardo,
have you looked into OSGi's own asynchronous FrameworkEventListener? If
you solely need to capture the BundleException, you should get it by
invoking FrameworkEvent.getThrowable() on ERROR events (yet, I haven't
tried it myself :) ).
Cheers,
Fabian
Eduardo Born wrote:
> Hi!
> I'm developing on top of Equinox and couldn't find a way to capture or
> listen to BundleExceptions raised by the framework. More specifically, I
> want to capture bundle exceptions thrown when bundles cannot be resolved due
> to any cause, for example missing constraints. Later on, I'll display a
> dialog with all bundle exceptions to help me debug these issues.
>
> I've used equinox outside Eclipse and was able to capture all bundle
> exceptions there since I was the one discovering bundles, installing and
> starting some of them, but now that I'm lauching a product from within
> eclipse I can't find a way to listen for those exceptions... I've looked
> into adaptohooks but none of them seem to help.
>
> Please let me know how to accomplish this, I have looked into this
> extensively and would greatly appreciate any clues you might have.
>
> Thank you!
> Eduardo Born
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> equinox-dev mailing list
> equinox-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/equinox-dev
>