/** @see ist.po.ui.Command#execute() */ @Override public final void execute() throws DialogException, IOException { String fileName = IO.readString(Message.nameRequest()); String username = IO.readString(Message.usernameRequest()); try { _receiver.changeOwner(fileName, username); } catch (UnknownUserException e) { UserUnknownException uee = new UserUnknownException(e.getUsername()); // IO.println(uee.getMessage()); throw uee; } catch (DeniedPermissionException e) { AccessDeniedException ade = new AccessDeniedException(e.getUsername()); // IO.println(ade.getMessage()); throw ade; } catch (UnknownEntryException e) { EntryUnknownException eue = new EntryUnknownException(e.getName()); // IO.println(eue.getMessage()); throw eue; } }