public ianywhere.ml.script.ServerException
Thrown to indicate that there is an error condition that makes any further synchronization on the server impossible. Throwing this exception causes the MobiLink server to shut down.
All members of ianywhere.ml.script.ServerException, including all inherited members.
The following code is a function that can throw a ServerException if a fatal problem occurs, which causes the MobiLink server to shut down.
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()); } } |
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |