java - How to set alert instead of showing unhandled exception in J2ME? -


i designing application shows unhandled exception due lot of reason. want application show alert in catch block instead.

you this:

private alert alert; private display display; // obtain display display = display.getdisplay(this); in consturctor  catch(exception e) {     alert = new alert("error occurred", "message: " + e.getmessage(), null, alerttype.error);     alert.settimeout(alert.forever);     display.setcurrent(alert, form); } 

hope helps.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -