private void logIn() { try { if (marketobj.login(client, command.getPassword())) { contr.setAccount(); contr.successfulLogin(); } else contr.failedLogin(); } catch (RemoteException e) { contr.remoteExceptionHandler(e); } }
private void register() { System.out.println("registering"); try { marketobj.register(client, command.getPassword()); contr.successfulReg(); // contr.updateLog(client.getName() + " registered at the marketplace"); } catch (RejectedException e) { contr.failedReg(); } catch (RemoteException e2) { contr.remoteExceptionHandler(e2); } }