Ignore:
Timestamp:
04/29/13 10:29:06 (12 years ago)
Author:
pharms
Message:
  • corrected error handling during parsing
Location:
trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDparseDirHTML.java

    r1178 r1179  
    7777            Console.traceln(Level.INFO, "Processing file: " + source); 
    7878 
    79             parser.parseFile(source); 
     79            try { 
     80                parser.parseFile(source); 
     81            } 
     82            catch (Exception e) { 
     83                Console.printerrln("Could not parse " + source + ": " + e.getMessage()); 
     84            } 
    8085        } 
    8186 
  • trunk/autoquest-plugin-html/src/main/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDparseHTML.java

    r950 r1179  
    2323import de.ugoe.cs.autoquest.plugin.html.HTMLLogParser; 
    2424import de.ugoe.cs.util.console.Command; 
     25import de.ugoe.cs.util.console.Console; 
    2526import de.ugoe.cs.util.console.GlobalDataContainer; 
    2627 
     
    5758        HTMLLogParser parser = new HTMLLogParser(); 
    5859 
    59         parser.parseFile(filename); 
     60        try { 
     61            parser.parseFile(filename); 
     62        } 
     63        catch (Exception e) { 
     64            Console.printerrln("Could not parse " + filename + ": " + e.getMessage()); 
     65            return; 
     66        } 
     67 
    6068        Collection<List<Event>> sequences = parser.getSequences(); 
    6169 
Note: See TracChangeset for help on using the changeset viewer.