private void buy() { try { marketobj.Buy( command.getItemName(), command.getItemDescr(), command.getPrice(), command.getSeller(), client); contr.updateLog( "you bought " + command.getItemName() + " from " + command.getSeller() + " for: " + command.getPrice()); listItems(); } catch (RejectedException e2) { contr.rejectedExceptionHandler(e2); } catch (RemoteException e) { contr.remoteExceptionHandler(e); } }