Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
div15
Posts: 28
Registered: ‎01-27-2012
My Device: 8900
My Carrier: airtel

J2me Uncaught exception handler

Hi

 

i need to implement a handler that handles all the uncaught exception for blackberry using J2me.

I tried using Thread.UncaughtExceptionHandler but it does not seem to work in j2me. First, is it feasible in j2me?

If yes, please guide on how.

 

Please Help. Its too urgent.

 

Thanks.

Please use plain text.
Developer
simon_hain
Posts: 16,017
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: J2me Uncaught exception handler

you can surround the enterEventDispatcher with a try/catch, but this should really be the last line of defense.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Contributor
div15
Posts: 28
Registered: ‎01-27-2012
My Device: 8900
My Carrier: airtel

Re: J2me Uncaught exception handler

Thanks for the quick reply.

 

I am new to blackberry and j2me. Can you please guide me a little on how to start.

 

PLease that would be a real great help.

 

Thanks.

Please use plain text.