Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
抛出此异常说明出现使服务器上的同步无法进一步执行的错误状况。
public class ServerException
ServerException 类的所有成员,包括所有继承的成员。
ServerException 构造函数
这将导致 MobiLink 服务器关闭。
以下示例演示如何在出现致命问题并关闭 MobiLink 服务器时抛出 [ServerException]:
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()); } }