Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
サーバーで同期の進行を妨げるエラー状態が存在することを示すために発行されます。
public class ServerException
継承されたメンバーを含む ServerException クラスのすべてのメンバー。
ServerException コンストラクター
この例外が発行されると、Mobile Link サーバーはシャットダウンされます。
次の例では、致命的な問題が発生したときに ServerException をスローし、Mobile Link サーバーをシャットダウンする方法を示します。
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()); } }