Hi
Before doing synchronization you should check the credentials and network. And write your own exception handler method to display the synch error.
Example:
if
(!isNetworkAvailable())
{
closeSyncRecordForFailiure(sync, "Network connection is not available");
thrownew Exception("Network connection is not available");
}
closeSyncRecordForFailiure(sync, "Could not establish connection to the server");
thrownew Exception("Could not establish connection to the server");
for
(com.sybase.persistence.LogRecord l:logs)
{
System.
out.println(l.getComponent()+" "+l.getEntityKey()+" "+l.getMessage()+" "+l.getCode()+" "+l.getMessageId());
}
This is the example for getting logs of your application and display the exact message which you want
Regards
Sathiya