added error Message for file reading error
This commit is contained in:
parent
3ebf9c5072
commit
ddfbb9bbd0
|
@ -51,11 +51,11 @@ public class FactoryDecorator implements IsObservable{
|
||||||
try {
|
try {
|
||||||
factory.setTournament(fileIO.loadTournament(tournamentFile));
|
factory.setTournament(fileIO.loadTournament(tournamentFile));
|
||||||
openScheduleView();
|
openScheduleView();
|
||||||
} catch (IOException e) {
|
clearMessage(false);
|
||||||
|
} catch (IOException | ClassNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} catch (ClassNotFoundException e) {
|
printMessageToFooter("Fehler beim lesen der Datei.", true);
|
||||||
e.printStackTrace();
|
} //TODO handle and logging
|
||||||
} //TODO handle and logging
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void openTournamentList() {
|
public void openTournamentList() {
|
||||||
|
|
Loading…
Reference in New Issue