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