- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- Location:
- trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/EventGenerator.java
r655 r766 2 2 3 3 import java.io.IOException; 4 import java.security.InvalidParameterException;5 4 import java.util.ArrayList; 6 5 import java.util.HashMap; … … 174 173 generateReplayMessage(replayMessageSpec); 175 174 } 176 catch (I nvalidParameterException e) {175 catch (IllegalArgumentException e) { 177 176 Console.printerrln(e.getMessage()); 178 177 // TODO currentToken.invalidateReplay(); … … 184 183 // TODO currentToken.invalidateReplay(); 185 184 } 186 catch (I nvalidParameterException e) {185 catch (IllegalArgumentException e) { 187 186 Console.printerrln(e.getMessage()); 188 187 // TODO currentToken.invalidateReplay(); … … 242 241 isMatch = matchMultipleConditions(messageCondition, nextMessageCondition); 243 242 } 244 catch (I nvalidParameterException e) {243 catch (IllegalArgumentException e) { 245 244 Console.printerrln(e.getMessage()); 246 245 } … … 250 249 isMatch = matchSingleMessage(messageCondition); 251 250 } 252 catch (I nvalidParameterException e) {251 catch (IllegalArgumentException e) { 253 252 Console.printerrln(e.getMessage()); 254 253 } … … 606 605 607 606 if (seqVar.size() != generatedMessageSeq.size()) { 608 throw new I nvalidParameterException607 throw new IllegalArgumentException 609 608 ("Failure generating replay sequence for rule " + currentRuleName + 610 609 ": One or more of the sequence variables used to generate a sequence have " + … … 656 655 657 656 if (seqVar.size() != generatedMessageSeq.size()) { 658 throw new I nvalidParameterException657 throw new IllegalArgumentException 659 658 ("Failure generating replay sequence for rule " + currentRuleName + 660 659 ": One or more of the sequence variables used to generate a sequence have " + … … 712 711 713 712 if (seqVar.size() != generatedMessageSeq.size()) { 714 throw new I nvalidParameterException713 throw new IllegalArgumentException 715 714 ("Failure generating replay sequence for rule " + currentRuleName + 716 715 ": One or more of the sequence variables used to generate a sequence have " + … … 783 782 * object identifier in the storage 784 783 * @return message retrieved from the storage 785 * @throws I nvalidParameterException784 * @throws IllegalArgumentException 786 785 * thrown in case of invalid uses of "this" or if no message with the identifier obj 787 786 * is found in the storage 788 787 */ 789 788 private ReplayWindowsMessage getStoredMessageVariable(WindowsMessage currentMessage, String obj) 790 throws I nvalidParameterException789 throws IllegalArgumentException 791 790 { 792 791 ReplayWindowsMessage varMessage = null; 793 792 if (obj.equals("this")) { 794 793 if (currentMessage == null) { 795 throw new I nvalidParameterException("Failure obtaining term value for rule " +794 throw new IllegalArgumentException("Failure obtaining term value for rule " + 796 795 currentRuleName + 797 796 ": \"this\" is not a valid name for generating runtime messages."); … … 805 804 } 806 805 else { 807 throw new I nvalidParameterException("Failure obtaining term value for rule " +806 throw new IllegalArgumentException("Failure obtaining term value for rule " + 808 807 currentRuleName + ": No message \"" + obj + "\" stored."); 809 808 } -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParser.java
r655 r766 6 6 import java.io.IOException; 7 7 import java.io.InputStreamReader; 8 import java.security.InvalidParameterException;9 8 import java.util.Collection; 10 9 import java.util.HashMap; … … 143 142 public void parseFile(String filename) { 144 143 if (filename == null) { 145 throw new I nvalidParameterException("filename must not be null");144 throw new IllegalArgumentException("filename must not be null"); 146 145 } 147 146 … … 159 158 public void parseFile(File file) { 160 159 if (file == null) { 161 throw new I nvalidParameterException("file must not be null");160 throw new IllegalArgumentException("file must not be null"); 162 161 } 163 162 … … 331 330 sequenceSplitter.addMessage(message); 332 331 } 333 catch (I nvalidParameterException e) {332 catch (IllegalArgumentException e) { 334 333 Console.traceln(Level.WARNING, e.getMessage() + " WindowsMessage " + currentMessageType + 335 334 " ignored."); -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertDirToXml.java
r728 r766 3 3 import java.io.FileNotFoundException; 4 4 import java.io.IOException; 5 import java.security.InvalidParameterException;6 5 import java.util.List; 7 6 … … 38 37 public void run(List<Object> parameters) { 39 38 if (parameters.size() < 2) { 40 throw new I nvalidParameterException();39 throw new IllegalArgumentException(); 41 40 } 42 41 String path = (String) parameters.get(0); -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertToXml.java
r664 r766 3 3 import java.io.FileNotFoundException; 4 4 import java.io.IOException; 5 import java.security.InvalidParameterException;6 5 import java.util.List; 7 6 … … 38 37 public void run(List<Object> parameters) { 39 38 if (parameters.size() < 2) { 40 throw new I nvalidParameterException();39 throw new IllegalArgumentException(); 41 40 } 42 41 String source = (String) parameters.get(0); -
trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDparseXML.java
r667 r766 1 1 package de.ugoe.cs.quest.plugin.mfc.commands; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 53 52 } 54 53 catch (Exception e) { 55 throw new I nvalidParameterException();54 throw new IllegalArgumentException(); 56 55 } 57 56
Note: See TracChangeset
for help on using the changeset viewer.