Ensure that OData BlackBerry clients are notified of HTTP errors while establishing a connection with the network edge.
public class UserRegistration implements IODPHttpErrorListener{ public void startUserRegistration(){
UserManager.initialize(appID);
UserManager.setConnectionProfile(serverIP,serverPort,farmID);
UserManager.setODPHttpErrorListener(this);
UserManager.registerUser(username,securityConfig,password);
}
//callback method for HttpError
public void onHttpError(int errorCode, String errorMsg,
Hashtable errorHeader) {
logger.info(null, "On HttpError", "Error Info" +errorCode +errorMsg);
}