Skip to content

Commit

Permalink
Move SocketException catch and remove doNothing...
Browse files Browse the repository at this point in the history
  • Loading branch information
ZingyAwesome committed Dec 29, 2021
1 parent 3160d6a commit f525307
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/sample/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,8 @@ public void chat() {
nameField.clear();
window.setScene(mainScene);
sendMessageField.requestFocus();
doNothing();
}
} catch(ArrayIndexOutOfBoundsException | IllegalArgumentException | SocketException | NullPointerException exception) {
} catch(ArrayIndexOutOfBoundsException | IllegalArgumentException | NullPointerException exception) {

}
}
Expand All @@ -215,18 +214,17 @@ public void chat() {


}
} catch (IOException exception) {
} catch (SocketException exception) {

}
catch (IOException exception) {
exception.printStackTrace();
}
}

public static void main(String[] args) {
launch(args);
}
private void doNothing() throws SocketException{
}



}

Expand Down

0 comments on commit f525307

Please sign in to comment.