/** * A static wrapper for objectMain, so that that method may be executed as a Java "program". * * <p>Throws only RuntimeExceptions or Errors, because this method is intended to System.exit() * for all but disastrous system problems, for which the inconvenience of a stack trace would be * the least of your worries. * * <p> * * <p>If you don't want SqlTool to System.exit(), then use the method objectMain() instead of this * method. * * <p> * * @see #objectMain(String[]) */ public static void main(String[] args) { try { SqlTool.objectMain(args); } catch (SqlToolException fr) { System.err.println((fr.getMessage() == null) ? fr : fr.getMessage()); System.exit(fr.exitValue); } System.exit(0); }