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