Example #1
0
  private void logIn() {

    try {
      if (marketobj.login(client, command.getPassword())) {
        contr.setAccount();
        contr.successfulLogin();
      } else contr.failedLogin();
    } catch (RemoteException e) {
      contr.remoteExceptionHandler(e);
    }
  }
Example #2
0
 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);
   }
 }