/** * Read the exception from the CDR intput stream. * * @param input a org.omg.CORBA.portable stream to read from. */ public static UnknownUserException read(InputStream input) { // Read the exception repository id. input.read_string(); UnknownUserException value = new UnknownUserException(); value.except = input.read_any(); return value; }
/** @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; } }