Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
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  
    11package de.ugoe.cs.quest.commands.misc; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3938                        objectName = (String) parameters.get(0); 
    4039                } catch (Exception e) { 
    41                         throw new InvalidParameterException(); 
     40                        throw new IllegalArgumentException(); 
    4241                } 
    4342                boolean deleted = GlobalDataContainer.getInstance().removeData( 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDload.java

    r733 r766  
    44import java.io.IOException; 
    55import java.io.ObjectInputStream; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    3231                        filename = (String) parameters.get(0); 
    3332                } catch (Exception e) { 
    34                         throw new InvalidParameterException(); 
     33                        throw new IllegalArgumentException(); 
    3534                } 
    3635 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDloadObject.java

    r733 r766  
    44import java.io.IOException; 
    55import java.io.ObjectInputStream; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    3635                        objectName = (String) parameters.get(1); 
    3736                } catch (Exception e) { 
    38                         throw new InvalidParameterException(); 
     37                        throw new IllegalArgumentException(); 
    3938                } 
    4039 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDsave.java

    r733 r766  
    44import java.io.IOException; 
    55import java.io.ObjectOutputStream; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    3231                        filename = (String) parameters.get(0); 
    3332                } catch (Exception e) { 
    34                         throw new InvalidParameterException(); 
     33                        throw new IllegalArgumentException(); 
    3534                } 
    3635 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDsaveObject.java

    r733 r766  
    44import java.io.IOException; 
    55import java.io.ObjectOutputStream; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    3635                        objectName = (String) parameters.get(1); 
    3736                } catch (Exception e) { 
    38                         throw new InvalidParameterException(); 
     37                        throw new IllegalArgumentException(); 
    3938                } 
    4039 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDshowTimer.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.misc; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54import java.util.logging.Level; 
     
    3130                        timerName = (String) parameters.get(0); 
    3231                } catch (Exception e) { 
    33                         throw new InvalidParameterException(); 
     32                        throw new IllegalArgumentException(); 
    3433                } 
    3534 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstartFileListener.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.misc; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3029                        filename = (String) parameters.get(0); 
    3130                } catch (Exception e) { 
    32                         throw new InvalidParameterException(); 
     31                        throw new IllegalArgumentException(); 
    3332                } 
    3433 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstartTimer.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.misc; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    2928                        timerName = (String) parameters.get(0); 
    3029                } catch (Exception e) { 
    31                         throw new InvalidParameterException(); 
     30                        throw new IllegalArgumentException(); 
    3231                } 
    3332                Long time = System.currentTimeMillis(); 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/misc/CMDstopFileListener.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.misc; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    2423                        filename = (String) parameters.get(0); 
    2524                } catch (Exception e) { 
    26                         throw new InvalidParameterException(); 
     25                        throw new IllegalArgumentException(); 
    2726                } 
    2827 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcondenseMouseClicks.java

    r750 r766  
    22package de.ugoe.cs.quest.commands.sequences; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.LinkedList; 
     
    5756        } 
    5857        catch (Exception e) { 
    59             throw new InvalidParameterException("must provide a sequences name"); 
     58            throw new IllegalArgumentException("must provide a sequences name"); 
    6059        } 
    6160 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDcorrectKeyInteractionTargets.java

    r750 r766  
    22package de.ugoe.cs.quest.commands.sequences; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.LinkedList; 
     
    5756        } 
    5857        catch (Exception e) { 
    59             throw new InvalidParameterException("must provide a sequences name"); 
     58            throw new IllegalArgumentException("must provide a sequences name"); 
    6059        } 
    6160 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDdetectTextInputEvents.java

    r751 r766  
    22package de.ugoe.cs.quest.commands.sequences; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.LinkedList; 
     
    6059        } 
    6160        catch (Exception e) { 
    62             throw new InvalidParameterException("must provide a sequences name"); 
     61            throw new IllegalArgumentException("must provide a sequences name"); 
    6362        } 
    6463 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDgenerateReplayfile.java

    r733 r766  
    55import java.io.IOException; 
    66import java.io.OutputStreamWriter; 
    7 import java.security.InvalidParameterException; 
    87import java.util.Collection; 
    98import java.util.List; 
     
    5655                        sequencesName = (String) parameters.get(1); 
    5756                } catch (Exception e) { 
    58                         throw new InvalidParameterException(); 
     57                        throw new IllegalArgumentException(); 
    5958                } 
    6059 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsequenceStatistics.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.sequences; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    3837                        sequencesName = (String) parameters.get(0); 
    3938                } catch (Exception e) { 
    40                         throw new InvalidParameterException(); 
     39                        throw new IllegalArgumentException(); 
    4140                } 
    4241 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/sequences/CMDsortKeyInteractions.java

    r765 r766  
    22package de.ugoe.cs.quest.commands.sequences; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.LinkedList; 
     
    8180        } 
    8281        catch (Exception e) { 
    83             throw new InvalidParameterException("must provide a sequences name"); 
     82            throw new IllegalArgumentException("must provide a sequences name"); 
    8483        } 
    8584 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usability/CMDevaluateUsability.java

    r733 r766  
    22package de.ugoe.cs.quest.commands.usability; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.List; 
    65 
     
    5352        } 
    5453        catch (Exception e) { 
    55             throw new InvalidParameterException("must provide a task tree name"); 
     54            throw new IllegalArgumentException("must provide a task tree name"); 
    5655        } 
    5756 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usability/CMDgenerateTaskTree.java

    r733 r766  
    22package de.ugoe.cs.quest.commands.usability; 
    33 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.List; 
     
    5655        } 
    5756        catch (Exception e) { 
    58             throw new InvalidParameterException("must provide a sequences name"); 
     57            throw new IllegalArgumentException("must provide a sequences name"); 
    5958        } 
    6059 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/AbstractTrainCommand.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    6766                        handleAdditionalParameters(parameters); 
    6867                } catch (Exception e) { 
    69                         throw new InvalidParameterException(); 
     68                        throw new IllegalArgumentException(); 
    7069                } 
    7170 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDcalcCoverage.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    4544                        maxLength = Integer.parseInt((String) parameters.get(4)); 
    4645                } catch (Exception e) { 
    47                         throw new InvalidParameterException(); 
     46                        throw new IllegalArgumentException(); 
    4847                } 
    4948 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDcalcEntropy.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    4140                        modelname = (String) parameters.get(0); 
    4241                } catch (Exception e) { 
    43                         throw new InvalidParameterException(); 
     42                        throw new IllegalArgumentException(); 
    4443                } 
    4544 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDflattenModel.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3635                        modelnameFOM = (String) parameters.get(1); 
    3736                } catch (Exception e) { 
    38                         throw new InvalidParameterException(); 
     37                        throw new IllegalArgumentException(); 
    3938                } 
    4039 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateFixedLengthSequences.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    5251                        } 
    5352                } catch (Exception e) { 
    54                         throw new InvalidParameterException(); 
     53                        throw new IllegalArgumentException(); 
    5554                } 
    5655 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateGreedy.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.Iterator; 
     
    6362                        } 
    6463                } catch (Exception e) { 
    65                         throw new InvalidParameterException(); 
     64                        throw new IllegalArgumentException(); 
    6665                } 
    6766 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateHybrid.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedList; 
     
    4746                        } 
    4847                } catch (Exception e) { 
    49                         throw new InvalidParameterException(); 
     48                        throw new IllegalArgumentException(); 
    5049                } 
    5150 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDgenerateRandomSequences.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    5150                        } 
    5251                } catch (Exception e) { 
    53                         throw new InvalidParameterException(); 
     52                        throw new IllegalArgumentException(); 
    5453                } 
    5554 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDlistSymbols.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Arrays; 
    54import java.util.List; 
     
    3736                        } 
    3837                } catch (Exception e) { 
    39                         throw new InvalidParameterException(); 
     38                        throw new IllegalArgumentException(); 
    4039                } 
    4140 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDmodelSize.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3130                        modelname = (String) parameters.get(0); 
    3231                } catch (Exception e) { 
    33                         throw new InvalidParameterException(); 
     32                        throw new IllegalArgumentException(); 
    3433                } 
    3534 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDprintDot.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    4241                        modelname = (String) parameters.get(0); 
    4342                } catch (Exception e) { 
    44                         throw new InvalidParameterException(); 
     43                        throw new IllegalArgumentException(); 
    4544                } 
    4645 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDprintTrieDot.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    4342                        modelname = (String) parameters.get(0); 
    4443                } catch (Exception e) { 
    45                         throw new InvalidParameterException(); 
     44                        throw new IllegalArgumentException(); 
    4645                } 
    4746 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDshowMarkovModel.java

    r733 r766  
    44import java.awt.Rectangle; 
    55import java.awt.Shape; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    5958                        } 
    6059                } catch (Exception e) { 
    61                         throw new InvalidParameterException(); 
     60                        throw new IllegalArgumentException(); 
    6261                } 
    6362 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDshowTrie.java

    r733 r766  
    44import java.awt.Rectangle; 
    55import java.awt.Shape; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    5655                        modelname = (String) parameters.get(0); 
    5756                } catch (Exception e) { 
    58                         throw new InvalidParameterException(); 
     57                        throw new IllegalArgumentException(); 
    5958                } 
    6059 
  • trunk/quest-ui-core/src/main/java/de/ugoe/cs/quest/commands/usage/CMDupdateModel.java

    r733 r766  
    11package de.ugoe.cs.quest.commands.usage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    3736                        sequencesName = (String) parameters.get(1); 
    3837                } catch (Exception e) { 
    39                         throw new InvalidParameterException(); 
     38                        throw new IllegalArgumentException(); 
    4039                } 
    4140 
Note: See TracChangeset for help on using the changeset viewer.