Changeset 766 for trunk/quest-ui-core/src
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- Location:
- trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands
- Files:
-
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDdeleteObject.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.misc; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 39 38 objectName = (String) parameters.get(0); 40 39 } catch (Exception e) { 41 throw new I nvalidParameterException();40 throw new IllegalArgumentException(); 42 41 } 43 42 boolean deleted = GlobalDataContainer.getInstance().removeData( -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDload.java
r733 r766 4 4 import java.io.IOException; 5 5 import java.io.ObjectInputStream; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 32 31 filename = (String) parameters.get(0); 33 32 } catch (Exception e) { 34 throw new I nvalidParameterException();33 throw new IllegalArgumentException(); 35 34 } 36 35 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDloadObject.java
r733 r766 4 4 import java.io.IOException; 5 5 import java.io.ObjectInputStream; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 36 35 objectName = (String) parameters.get(1); 37 36 } catch (Exception e) { 38 throw new I nvalidParameterException();37 throw new IllegalArgumentException(); 39 38 } 40 39 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDsave.java
r733 r766 4 4 import java.io.IOException; 5 5 import java.io.ObjectOutputStream; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 32 31 filename = (String) parameters.get(0); 33 32 } catch (Exception e) { 34 throw new I nvalidParameterException();33 throw new IllegalArgumentException(); 35 34 } 36 35 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDsaveObject.java
r733 r766 4 4 import java.io.IOException; 5 5 import java.io.ObjectOutputStream; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 36 35 objectName = (String) parameters.get(1); 37 36 } catch (Exception e) { 38 throw new I nvalidParameterException();37 throw new IllegalArgumentException(); 39 38 } 40 39 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDshowTimer.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.misc; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 import java.util.logging.Level; … … 31 30 timerName = (String) parameters.get(0); 32 31 } catch (Exception e) { 33 throw new I nvalidParameterException();32 throw new IllegalArgumentException(); 34 33 } 35 34 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstartFileListener.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.misc; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 30 29 filename = (String) parameters.get(0); 31 30 } catch (Exception e) { 32 throw new I nvalidParameterException();31 throw new IllegalArgumentException(); 33 32 } 34 33 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstartTimer.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.misc; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 29 28 timerName = (String) parameters.get(0); 30 29 } catch (Exception e) { 31 throw new I nvalidParameterException();30 throw new IllegalArgumentException(); 32 31 } 33 32 Long time = System.currentTimeMillis(); -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstopFileListener.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.misc; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 24 23 filename = (String) parameters.get(0); 25 24 } catch (Exception e) { 26 throw new I nvalidParameterException();25 throw new IllegalArgumentException(); 27 26 } 28 27 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcondenseMouseClicks.java
r750 r766 2 2 package de.ugoe.cs.quest.commands.sequences; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.Collection; 6 5 import java.util.LinkedList; … … 57 56 } 58 57 catch (Exception e) { 59 throw new I nvalidParameterException("must provide a sequences name");58 throw new IllegalArgumentException("must provide a sequences name"); 60 59 } 61 60 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcorrectKeyInteractionTargets.java
r750 r766 2 2 package de.ugoe.cs.quest.commands.sequences; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.Collection; 6 5 import java.util.LinkedList; … … 57 56 } 58 57 catch (Exception e) { 59 throw new I nvalidParameterException("must provide a sequences name");58 throw new IllegalArgumentException("must provide a sequences name"); 60 59 } 61 60 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDdetectTextInputEvents.java
r751 r766 2 2 package de.ugoe.cs.quest.commands.sequences; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.Collection; 6 5 import java.util.LinkedList; … … 60 59 } 61 60 catch (Exception e) { 62 throw new I nvalidParameterException("must provide a sequences name");61 throw new IllegalArgumentException("must provide a sequences name"); 63 62 } 64 63 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDgenerateReplayfile.java
r733 r766 5 5 import java.io.IOException; 6 6 import java.io.OutputStreamWriter; 7 import java.security.InvalidParameterException;8 7 import java.util.Collection; 9 8 import java.util.List; … … 56 55 sequencesName = (String) parameters.get(1); 57 56 } catch (Exception e) { 58 throw new I nvalidParameterException();57 throw new IllegalArgumentException(); 59 58 } 60 59 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsequenceStatistics.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.sequences; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 38 37 sequencesName = (String) parameters.get(0); 39 38 } catch (Exception e) { 40 throw new I nvalidParameterException();39 throw new IllegalArgumentException(); 41 40 } 42 41 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsortKeyInteractions.java
r765 r766 2 2 package de.ugoe.cs.quest.commands.sequences; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.Collection; 6 5 import java.util.LinkedList; … … 81 80 } 82 81 catch (Exception e) { 83 throw new I nvalidParameterException("must provide a sequences name");82 throw new IllegalArgumentException("must provide a sequences name"); 84 83 } 85 84 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usability/CMDevaluateUsability.java
r733 r766 2 2 package de.ugoe.cs.quest.commands.usability; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.List; 6 5 … … 53 52 } 54 53 catch (Exception e) { 55 throw new I nvalidParameterException("must provide a task tree name");54 throw new IllegalArgumentException("must provide a task tree name"); 56 55 } 57 56 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usability/CMDgenerateTaskTree.java
r733 r766 2 2 package de.ugoe.cs.quest.commands.usability; 3 3 4 import java.security.InvalidParameterException;5 4 import java.util.Collection; 6 5 import java.util.List; … … 56 55 } 57 56 catch (Exception e) { 58 throw new I nvalidParameterException("must provide a sequences name");57 throw new IllegalArgumentException("must provide a sequences name"); 59 58 } 60 59 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/AbstractTrainCommand.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 67 66 handleAdditionalParameters(parameters); 68 67 } catch (Exception e) { 69 throw new I nvalidParameterException();68 throw new IllegalArgumentException(); 70 69 } 71 70 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDcalcCoverage.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 45 44 maxLength = Integer.parseInt((String) parameters.get(4)); 46 45 } catch (Exception e) { 47 throw new I nvalidParameterException();46 throw new IllegalArgumentException(); 48 47 } 49 48 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDcalcEntropy.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 41 40 modelname = (String) parameters.get(0); 42 41 } catch (Exception e) { 43 throw new I nvalidParameterException();42 throw new IllegalArgumentException(); 44 43 } 45 44 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDflattenModel.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 36 35 modelnameFOM = (String) parameters.get(1); 37 36 } catch (Exception e) { 38 throw new I nvalidParameterException();37 throw new IllegalArgumentException(); 39 38 } 40 39 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateFixedLengthSequences.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 52 51 } 53 52 } catch (Exception e) { 54 throw new I nvalidParameterException();53 throw new IllegalArgumentException(); 55 54 } 56 55 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateGreedy.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.Iterator; … … 63 62 } 64 63 } catch (Exception e) { 65 throw new I nvalidParameterException();64 throw new IllegalArgumentException(); 66 65 } 67 66 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateHybrid.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.LinkedList; … … 47 46 } 48 47 } catch (Exception e) { 49 throw new I nvalidParameterException();48 throw new IllegalArgumentException(); 50 49 } 51 50 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateRandomSequences.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 51 50 } 52 51 } catch (Exception e) { 53 throw new I nvalidParameterException();52 throw new IllegalArgumentException(); 54 53 } 55 54 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDlistSymbols.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Arrays; 5 4 import java.util.List; … … 37 36 } 38 37 } catch (Exception e) { 39 throw new I nvalidParameterException();38 throw new IllegalArgumentException(); 40 39 } 41 40 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDmodelSize.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 31 30 modelname = (String) parameters.get(0); 32 31 } catch (Exception e) { 33 throw new I nvalidParameterException();32 throw new IllegalArgumentException(); 34 33 } 35 34 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDprintDot.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 42 41 modelname = (String) parameters.get(0); 43 42 } catch (Exception e) { 44 throw new I nvalidParameterException();43 throw new IllegalArgumentException(); 45 44 } 46 45 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDprintTrieDot.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.List; 5 4 … … 43 42 modelname = (String) parameters.get(0); 44 43 } catch (Exception e) { 45 throw new I nvalidParameterException();44 throw new IllegalArgumentException(); 46 45 } 47 46 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDshowMarkovModel.java
r733 r766 4 4 import java.awt.Rectangle; 5 5 import java.awt.Shape; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 59 58 } 60 59 } catch (Exception e) { 61 throw new I nvalidParameterException();60 throw new IllegalArgumentException(); 62 61 } 63 62 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDshowTrie.java
r733 r766 4 4 import java.awt.Rectangle; 5 5 import java.awt.Shape; 6 import java.security.InvalidParameterException;7 6 import java.util.List; 8 7 … … 56 55 modelname = (String) parameters.get(0); 57 56 } catch (Exception e) { 58 throw new I nvalidParameterException();57 throw new IllegalArgumentException(); 59 58 } 60 59 -
trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDupdateModel.java
r733 r766 1 1 package de.ugoe.cs.quest.commands.usage; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.List; … … 37 36 sequencesName = (String) parameters.get(1); 38 37 } catch (Exception e) { 39 throw new I nvalidParameterException();38 throw new IllegalArgumentException(); 40 39 } 41 40
Note: See TracChangeset
for help on using the changeset viewer.