public static void main(String[] args) throws IOError, TException, UnsupportedEncodingException, IllegalArgument, AlreadyExists { if (args.length != 2) { System.out.println("Invalid arguments!"); System.out.println("Usage: DemoClient host port"); System.exit(-1); } port = Integer.parseInt(args[1]); host = args[0]; DemoClient client = new DemoClient(); client.run(); }
protected void handleException(AlreadyExists e) throws AlreadyExists { throw e; }