From: Miguel A. B. L. <ari...@us...> - 2007-02-26 22:33:14
|
Update of /cvsroot/arianne/marauroa/src/marauroa/client In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv13951 Modified Files: ClientFramework.java Log Message: Omitted IOException, it is a severe error on any of the network layers and should be managed there and not at the client itself. Index: ClientFramework.java =================================================================== RCS file: /cvsroot/arianne/marauroa/src/marauroa/client/ClientFramework.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ClientFramework.java 26 Feb 2007 22:24:19 -0000 1.3 --- ClientFramework.java 26 Feb 2007 22:33:11 -0000 1.4 *************** *** 97,101 **** * @throws TimeoutException if there is no message available in TIMEOUT miliseconds. */ ! private Message getMessage() throws InvalidVersionException, IOException, TimeoutException { if (messages.isEmpty()) { return messages.remove(0); --- 97,101 ---- * @throws TimeoutException if there is no message available in TIMEOUT miliseconds. */ ! private Message getMessage() throws InvalidVersionException, TimeoutException { if (messages.isEmpty()) { return messages.remove(0); *************** *** 134,138 **** * @throws IOException */ ! public synchronized void login(String username, String password) throws InvalidVersionException, TimeoutException, LoginFailedException, IOException { int received = 0; RSAPublicKey key = null; --- 134,138 ---- * @throws IOException */ ! public synchronized void login(String username, String password) throws InvalidVersionException, TimeoutException, LoginFailedException { int received = 0; RSAPublicKey key = null; *************** *** 224,228 **** * @throws IOException */ ! public synchronized boolean chooseCharacter(String character) throws TimeoutException, InvalidVersionException, IOException { Message msgCC = new MessageC2SChooseCharacter(null, character); netMan.addMessage(msgCC); --- 224,228 ---- * @throws IOException */ ! public synchronized boolean chooseCharacter(String character) throws TimeoutException, InvalidVersionException { Message msgCC = new MessageC2SChooseCharacter(null, character); netMan.addMessage(msgCC); *************** *** 264,268 **** * @throws IOException */ ! public synchronized void createAccount(String username, String password, String email, RPObject template) throws TimeoutException, InvalidVersionException, CreateAccountFailedException, IOException { Message msgCA = new MessageC2SCreateAccount(null, username, password, email, template); --- 264,268 ---- * @throws IOException */ ! public synchronized void createAccount(String username, String password, String email, RPObject template) throws TimeoutException, InvalidVersionException, CreateAccountFailedException { Message msgCA = new MessageC2SCreateAccount(null, username, password, email, template); *************** *** 306,310 **** * @throws IOException */ ! public synchronized boolean logout() throws InvalidVersionException, TimeoutException, IOException { Message msgL = new MessageC2SLogout(null); --- 306,310 ---- * @throws IOException */ ! public synchronized boolean logout() throws InvalidVersionException, TimeoutException { Message msgL = new MessageC2SLogout(null); *************** *** 334,338 **** * @throws IOException */ ! public synchronized boolean loop(int delta) throws IOException { boolean recievedMessages = false; --- 334,338 ---- * @throws IOException */ ! public synchronized boolean loop(int delta) { boolean recievedMessages = false; |