In our app, we would like to suppress the default network error dialogs. Currently, we are adding an ErrorListener to NetworkManager and a ResponseCodeListener to each ConnectionRequest/ImageDownloadService. In the actionPerformed method, we consume the event so that it will not propagate. This seems to suppress most of the dialogs. However, the dialog associated with the following stack trace is still appearing:

java.io.IOException: could not establish network. error = 65560\n
- com.nokia.mid.impl.midlet.ConnectivityImpl.establishNetwork(), bci=0
- com.sun.midp.io.j2me.http.Protocol.connect(), bci=16
- com.sun.midp.io.j2me.http.Protocol.streamConnect(), bci=53
- com.sun.midp.io.j2me.http.Protocol.startRequest(), bci=7
- com.sun.midp.io.j2me.http.Protocol.sendRequest(), bci=33
- com.sun.midp.io.j2me.http.Protocol.sendRequest(), bci=3
- com.sun.midp.io.j2me.http.Protocol.getResponseCode(), bci=5
- com.sun.lwuit.io.impl.MIDPImpl.getResponseCode(MIDPImpl.java:223)
- com.sun.lwuit.io.ConnectionRequest.performOperation(ConnectionRequest.java:220)
- com.sun.lwuit.io.NetworkManager$NetworkThread.run(NetworkManager.java:176)
- java.lang.Thread.run(), bci=5


How can we suppress this dialog?

I should add that the only occurs if the connection is lost while network operations are in progress.