Thrown to indicate that there is an error condition that makes any further synchronization on the server impossible.
public class ServerException
All members of ServerException class, including all inherited members.
ServerException constructor
Throwing this exception causes the MobiLink server to shut down.
The following example demonstrates how to throw a ServerException when a fatal problem occurs, and shut down the MobiLink server:
public void handleUpload(UploadData ud) throws SQLException, IOException, ServerException { UploadedTableData tables[] = ud.getUploadedTables(); if (tables == null) { throw new ServerException("Failed to read uploaded tables"); } for (int i = 0; i < tables.length; i++) { UploadedTableData currentTable = tables[i]; println("table " + java.lang.Integer.toString(i) + " name: " + currentTable.getName()); // Print out delete result set. println("Deletes"); printRSInfo(currentTable.getDeletes()); // Print out insert result set. println("Inserts"); printRSInfo(currentTable.getInserts()); // print out update result set println("Updates"); printUpdateRSInfo(currentTable.getUpdates()); } }