Changeset 766


Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
Location:
trunk
Files:
86 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/CommandExecuterTest.java

    r668 r766  
    1515public class CommandExecuterTest { 
    1616 
    17         @Test(expected=java.security.InvalidParameterException.class) 
     17        @Test(expected=java.lang.IllegalArgumentException.class) 
    1818        public void testAddCommandPackage_1() 
    1919                throws Exception { 
     
    2323        } 
    2424 
    25         @Test(expected=java.security.InvalidParameterException.class) 
     25        @Test(expected=java.lang.IllegalArgumentException.class) 
    2626        public void testAddCommandPackage_2() 
    2727                throws Exception { 
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/defaultcommands/CMDexecTest.java

    r668 r766  
    7070        } 
    7171 
    72         @Test(expected = java.security.InvalidParameterException.class) 
     72        @Test(expected = java.lang.IllegalArgumentException.class) 
    7373        public void testRun_3() throws Exception { 
    7474                CMDexec fixture = new CMDexec(); 
     
    102102        } 
    103103 
    104         @Test(expected = java.security.InvalidParameterException.class) 
     104        @Test(expected = java.lang.IllegalArgumentException.class) 
    105105        public void testRun_5() throws Exception { 
    106106                CMDexec fixture = new CMDexec(); 
  • trunk/java-utils-test/src/test/java/de/ugoe/cs/util/console/mock/commands/CMDmockCommand.java

    r664 r766  
    11package de.ugoe.cs.util.console.mock.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    1615                        break; 
    1716                case 1: 
    18                         throw new InvalidParameterException(); 
     17                        throw new IllegalArgumentException(); 
    1918                default: 
    2019                        throw new RuntimeException(); 
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java

    r749 r766  
    77import java.io.IOException; 
    88import java.net.URL; 
    9 import java.security.InvalidParameterException; 
    109import java.util.ArrayList; 
    1110import java.util.Comparator; 
     
    9392     * @param pkg 
    9493     *            package where commands are located 
    95      * @throws InvalidParameterException 
     94     * @throws IllegalArgumentException 
    9695     *             thrown if the package name is null or empty string 
    9796     */ 
    9897    public void addCommandPackage(String pkg) { 
    9998        if ("".equals(pkg) || pkg == null) { 
    100             throw new InvalidParameterException("package name must not be null or empty string"); 
     99            throw new IllegalArgumentException("package name must not be null or empty string"); 
    101100        } 
    102101        commandPackageList.add(pkg); 
     
    139138                cmd.run(parser.getParameters()); 
    140139            } 
    141             catch (InvalidParameterException e) { 
     140            catch (IllegalArgumentException e) { 
    142141                Console.println("Usage: " + cmd.help()); 
    143142            } 
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDexec.java

    r664 r766  
    66import java.io.IOException; 
    77import java.io.InputStreamReader; 
    8 import java.security.InvalidParameterException; 
    98import java.util.List; 
    109import java.util.logging.Level; 
     
    3534                        script = (String) parameters.get(0); 
    3635                } catch (Exception e) { 
    37                         throw new InvalidParameterException(); 
     36                        throw new IllegalArgumentException(); 
    3837                } 
    3938                try { 
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/defaultcommands/CMDman.java

    r718 r766  
    44import java.io.IOException; 
    55import java.io.InputStream; 
    6 import java.security.InvalidParameterException; 
    76import java.util.List; 
    87 
     
    3635        } 
    3736        else { 
    38             throw new InvalidParameterException(); 
     37            throw new IllegalArgumentException(); 
    3938        } 
    4039 
  • trunk/quest-core-assertions-test/src/test/java/de/ugoe/cs/quest/assertions/FileEqualsReplayTest.java

    r548 r766  
    2929        } 
    3030 
    31         @Test(expected = java.security.InvalidParameterException.class) 
     31        @Test(expected = java.lang.IllegalArgumentException.class) 
    3232        public void testFileEqualsReplay_2() throws Exception { 
    3333                String actualFile = "actualFileString"; 
     
    3636        } 
    3737 
    38         @Test(expected = java.security.InvalidParameterException.class) 
     38        @Test(expected = java.lang.IllegalArgumentException.class) 
    3939        public void testFileEqualsReplay_3() throws Exception { 
    4040                String expectedFile = "expectedFileString"; 
  • trunk/quest-core-assertions-test/src/test/java/de/ugoe/cs/quest/assertions/TextEqualsReplayTest.java

    r518 r766  
    4040        } 
    4141 
    42         @Test(expected = java.security.InvalidParameterException.class) 
     42        @Test(expected = java.lang.IllegalArgumentException.class) 
    4343        public void testTextEqualsReplay_3() throws Exception { 
    4444                String expectedValue = "expectedValueString"; 
  • trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions/FileEqualsReplay.java

    r655 r766  
    11package de.ugoe.cs.quest.assertions; 
    2  
    3 import java.security.InvalidParameterException; 
    42 
    53import de.ugoe.cs.quest.IReplayDecorator; 
     
    4745     * @param actualFile 
    4846     *            name and path of the actual file 
    49      * @throws InvalidParameterException 
     47     * @throws IllegalArgumentException 
    5048     *             thrown if expectedFile or actualFile are null 
    5149     */ 
    5250    public FileEqualsReplay(String expectedFile, String actualFile) { 
    5351        if (expectedFile == null) { 
    54             throw new InvalidParameterException("expected file must not be null"); 
     52            throw new IllegalArgumentException("expected file must not be null"); 
    5553        } 
    5654        if (actualFile == null) { 
    57             throw new InvalidParameterException("actual file must not be null"); 
     55            throw new IllegalArgumentException("actual file must not be null"); 
    5856        } 
    5957        this.expectedFile = expectedFile; 
  • trunk/quest-core-assertions/src/main/java/de/ugoe/cs/quest/assertions/TextEqualsReplay.java

    r655 r766  
    11package de.ugoe.cs.quest.assertions; 
    2  
    3 import java.security.InvalidParameterException; 
    42 
    53import de.ugoe.cs.quest.IReplayDecorator; 
     
    4745     *            string description of the target whose string value is compared to the expected 
    4846     *            value 
    49      * @throws InvalidParameterException 
     47     * @throws IllegalArgumentException 
    5048     *             thrown if target is null 
    5149     */ 
    5250    public TextEqualsReplay(String expectedValue, String target) { 
    5351        if (target == null) { 
    54             throw new InvalidParameterException("target must not be null"); 
     52            throw new IllegalArgumentException("target must not be null"); 
    5553        } 
    5654        this.expectedValue = expectedValue; 
  • trunk/quest-core-coverage-test/src/test/java/de/ugoe/cs/quest/coverage/CoverageCalculatorObservedTest.java

    r553 r766  
    4444        } 
    4545 
    46         @Test(expected = java.security.InvalidParameterException.class) 
     46        @Test(expected = java.lang.IllegalArgumentException.class) 
    4747        public void testCoverageCalculatorObserved_2() throws Exception { 
    4848                int length = 2; 
     
    5151        } 
    5252 
    53         @Test(expected = java.security.InvalidParameterException.class) 
     53        @Test(expected = java.lang.IllegalArgumentException.class) 
    5454        public void testCoverageCalculatorObserved_3() throws Exception { 
    5555                int length = 2; 
     
    5858        } 
    5959 
    60         @Test(expected = java.security.InvalidParameterException.class) 
     60        @Test(expected = java.lang.IllegalArgumentException.class) 
    6161        public void testCoverageCalculatorObserved_4() throws Exception { 
    6262                int length = 0; 
     
    6565        } 
    6666 
    67         @Test(expected = java.security.InvalidParameterException.class) 
     67        @Test(expected = java.lang.IllegalArgumentException.class) 
    6868        public void testCoverageCalculatorObserved_5() throws Exception { 
    6969                int length = -1; 
     
    160160        } 
    161161         
    162         @Test(expected = java.security.InvalidParameterException.class )  
     162        @Test(expected = java.lang.IllegalArgumentException.class )  
    163163        public void testCoveragePossibleNew_3() throws Exception { 
    164164                int length = 3; 
     
    191191        } 
    192192         
    193         @Test(expected = java.security.InvalidParameterException.class )  
     193        @Test(expected = java.lang.IllegalArgumentException.class )  
    194194        public void testCoveragePossibleNewWeight_3() throws Exception { 
    195195                int length = 3; 
  • trunk/quest-core-coverage-test/src/test/java/de/ugoe/cs/quest/coverage/CoverageCalculatorProcessTest.java

    r553 r766  
    4040        } 
    4141 
    42         @Test(expected = java.security.InvalidParameterException.class) 
     42        @Test(expected = java.lang.IllegalArgumentException.class) 
    4343        public void testCoverageCalculatorProcess_2() throws Exception { 
    4444                int length = 2; 
     
    4747        } 
    4848 
    49         @Test(expected = java.security.InvalidParameterException.class) 
     49        @Test(expected = java.lang.IllegalArgumentException.class) 
    5050        public void testCoverageCalculatorProcess_3() throws Exception { 
    5151                int length = 2; 
     
    5454        } 
    5555 
    56         @Test(expected = java.security.InvalidParameterException.class) 
     56        @Test(expected = java.lang.IllegalArgumentException.class) 
    5757        public void testCoverageCalculatorProcess_4() throws Exception { 
    5858                int length = 0; 
     
    6161        } 
    6262 
    63         @Test(expected = java.security.InvalidParameterException.class) 
     63        @Test(expected = java.lang.IllegalArgumentException.class) 
    6464        public void testCoverageCalculatorProcess_5() throws Exception { 
    6565                int length = -1; 
     
    179179        } 
    180180 
    181         @Test(expected = java.security.InvalidParameterException.class) 
     181        @Test(expected = java.lang.IllegalArgumentException.class) 
    182182        public void testSetSequences_2() throws Exception { 
    183183                int length = 2; 
  • trunk/quest-core-coverage-test/src/test/java/de/ugoe/cs/quest/coverage/SequenceToolsTest.java

    r553 r766  
    5555        } 
    5656         
    57         @Test(expected=java.security.InvalidParameterException.class) 
     57        @Test(expected=java.lang.IllegalArgumentException.class) 
    5858        public void testContainedSubSequences_3() 
    5959                throws Exception { 
     
    6363        } 
    6464         
    65         @Test(expected=java.security.InvalidParameterException.class) 
     65        @Test(expected=java.lang.IllegalArgumentException.class) 
    6666        public void testContainedSubSequences_4() 
    6767                throws Exception { 
     
    129129        } 
    130130         
    131         @Test(expected = java.security.InvalidParameterException.class ) 
     131        @Test(expected = java.lang.IllegalArgumentException.class ) 
    132132        public void testNumSequences_3() 
    133133                throws Exception { 
     
    137137        } 
    138138 
    139         @Test(expected = java.security.InvalidParameterException.class ) 
     139        @Test(expected = java.lang.IllegalArgumentException.class ) 
    140140        public void testNumSequences_4() 
    141141                throws Exception { 
  • trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorObserved.java

    r655 r766  
    11package de.ugoe.cs.quest.coverage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedHashSet; 
     
    6968     * @param length 
    7069     *            length of the subsequences for which the coverage is analyzed; must be >0 
    71      * @throws InvalidParameterException 
     70     * @throws IllegalArgumentException 
    7271     *             thrown if observedSequences or sequences is null or length less than or equal to 
    7372     *             0 
     
    7877    { 
    7978        if (observedSequences == null) { 
    80             throw new InvalidParameterException("observed sequences must not be null"); 
     79            throw new IllegalArgumentException("observed sequences must not be null"); 
    8180        } 
    8281        if (sequences == null) { 
    83             throw new InvalidParameterException("sequences must not be null"); 
     82            throw new IllegalArgumentException("sequences must not be null"); 
    8483        } 
    8584        if (length <= 0) { 
    86             throw new InvalidParameterException("length must be >0; actual value: " + length); 
     85            throw new IllegalArgumentException("length must be >0; actual value: " + length); 
    8786        } 
    8887        this.observedSequences = observedSequences; 
     
    158157     *            stochastic process which is used to determine which subsequences are possible 
    159158     * @return coverage percentage 
    160      * @throws InvalidParameterException 
     159     * @throws IllegalArgumentException 
    161160     *             thrown if process is null 
    162161     */ 
    163162    public double getCoveragePossibleNew(IStochasticProcess process) { 
    164163        if (process == null) { 
    165             throw new InvalidParameterException("process must not be null"); 
     164            throw new IllegalArgumentException("process must not be null"); 
    166165        } 
    167166        createSubSeqs(); 
     
    186185     *            are possible 
    187186     * @return coverage percentage 
    188      * @throws InvalidParameterException 
     187     * @throws IllegalArgumentException 
    189188     *             thrown if process is null 
    190189     */ 
    191190    public double getCoveragePossibleNewWeight(IStochasticProcess process) { 
    192191        if (process == null) { 
    193             throw new InvalidParameterException("process must not be null"); 
     192            throw new IllegalArgumentException("process must not be null"); 
    194193        } 
    195194        createSubSeqs(); 
  • trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/CoverageCalculatorProcess.java

    r655 r766  
    11package de.ugoe.cs.quest.coverage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    7473     * @param length 
    7574     *            length of the subsequences for which the coverage is analyzed; must be >0 
    76      * @throws InvalidParameterException 
     75     * @throws IllegalArgumentException 
    7776     *             thrown if process or sequences is null or length less than or equal to 0 
    7877     */ 
     
    8281    { 
    8382        if (process == null) { 
    84             throw new InvalidParameterException("process must not be null"); 
     83            throw new IllegalArgumentException("process must not be null"); 
    8584        } 
    8685        if (sequences == null) { 
    87             throw new InvalidParameterException("sequences must not be null"); 
     86            throw new IllegalArgumentException("sequences must not be null"); 
    8887        } 
    8988        if (length <= 0) { 
    90             throw new InvalidParameterException("length must be >0; actual value: " + length); 
     89            throw new IllegalArgumentException("length must be >0; actual value: " + length); 
    9190        } 
    9291        this.process = process; 
     
    191190     * @param newSequences 
    192191     *            new collection of sequences 
    193      * @throws InvalidParameterException 
     192     * @throws IllegalArgumentException 
    194193     *             thrown is newSequences is null 
    195194     */ 
    196195    public void setSequences(Collection<List<Event>> newSequences) { 
    197196        if (newSequences == null) { 
    198             throw new InvalidParameterException("sequences must not be null"); 
     197            throw new IllegalArgumentException("sequences must not be null"); 
    199198        } 
    200199        this.sequences = newSequences; 
  • trunk/quest-core-coverage/src/main/java/de/ugoe/cs/quest/coverage/SequenceTools.java

    r655 r766  
    11package de.ugoe.cs.quest.coverage; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedHashMap; 
     
    8382     *            lenght of the sequences 
    8483     * @return numStates^length 
    85      * @throws InvalidParameterException 
     84     * @throws IllegalArgumentException 
    8685     *             thrown if length less or equal to 0 
    8786     */ 
    8887    public static long numSequences(IStochasticProcess process, int length) { 
    8988        if (length <= 0) { 
    90             throw new InvalidParameterException("length must be a positive integer"); 
     89            throw new IllegalArgumentException("length must be a positive integer"); 
    9190        } 
    9291        long result = 0; 
     
    108107     *            length of the subsequences 
    109108     * @return {@link Set} of all subsequences 
    110      * @throws InvalidParameterException 
     109     * @throws IllegalArgumentException 
    111110     *             thrown if length less or equal to 0 
    112111     */ 
     
    115114    { 
    116115        if (length <= 0) { 
    117             throw new InvalidParameterException("length must be a positive integer"); 
     116            throw new IllegalArgumentException("length must be a positive integer"); 
    118117        } 
    119118        Set<List<Event>> containedSubSeqs = new LinkedHashSet<List<Event>>(); 
  • trunk/quest-core-events-test/src/test/java/de/ugoe/cs/quest/eventcore/EventTest.java

    r655 r766  
    2727    } 
    2828 
    29     @Test(expected = java.security.InvalidParameterException.class) 
     29    @Test(expected = java.lang.IllegalArgumentException.class) 
    3030    public void testEvent_2() throws Exception { 
    3131        new Event(null); 
     
    265265    } 
    266266 
    267     @Test(expected = java.security.InvalidParameterException.class) 
     267    @Test(expected = java.lang.IllegalArgumentException.class) 
    268268    public void testAddReplayEvent_fixture_3() throws Exception { 
    269269        Event fixture = new Event(mock(IEventType.class)); 
     
    289289    } 
    290290 
    291     @Test(expected = java.security.InvalidParameterException.class) 
     291    @Test(expected = java.lang.IllegalArgumentException.class) 
    292292    public void testAddReplaySequence_2() throws Exception { 
    293293        Event fixture = new Event(mock(IEventType.class)); 
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/Event.java

    r681 r766  
    22 
    33import java.io.Serializable; 
    4 import java.security.InvalidParameterException; 
    54import java.util.LinkedList; 
    65import java.util.List; 
     
    6867    public Event(IEventType type) { 
    6968        if (type == null) { 
    70             throw new InvalidParameterException("Event type must not be null"); 
     69            throw new IllegalArgumentException("Event type must not be null"); 
    7170        } 
    7271        this.type = type; 
     
    208207     * @param replayable 
    209208     *            element that is added to the sequence 
    210      * @throws InvalidParameterException 
     209     * @throws IllegalArgumentException 
    211210     *             thrown is replayable is null 
    212211     */ 
    213212    public void addReplayable(IReplayable replayable) { 
    214213        if (replayable == null) { 
    215             throw new InvalidParameterException("replayble must not be null"); 
     214            throw new IllegalArgumentException("replayble must not be null"); 
    216215        } 
    217216        replay.add(replayable); 
     
    225224     * @param generatedReplaySeq 
    226225     *            {@link List} that is added to the sequence 
    227      * @throws InvalidParameterException 
     226     * @throws IllegalArgumentException 
    228227     *             thrown if generatedReplaySeq is null 
    229228     */ 
    230229    public void addReplayableSequence(List<? extends IReplayable> generatedReplaySeq) { 
    231230        if (generatedReplaySeq == null) { 
    232             throw new InvalidParameterException("generatedReplaySeq must not be null"); 
     231            throw new IllegalArgumentException("generatedReplaySeq must not be null"); 
    233232        } 
    234233        replay.addAll(generatedReplaySeq); 
  • trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/StringEventType.java

    r655 r766  
    11package de.ugoe.cs.quest.eventcore; 
    2  
    3 import java.security.InvalidParameterException; 
    42 
    53/** 
     
    3432     * @param str 
    3533     *            string that identifies the event type 
    36      * @throws InvalidParameterException 
     34     * @throws IllegalArgumentException 
    3735     *             thrown if str is null 
    3836     */ 
    39     public StringEventType(String str) throws InvalidParameterException { 
     37    public StringEventType(String str) throws IllegalArgumentException { 
    4038        if (str == null) { 
    41             throw new InvalidParameterException("str must not be null"); 
     39            throw new IllegalArgumentException("str must not be null"); 
    4240        } 
    4341        this.str = str; 
  • trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/DrawFromAllSequencesGenerator.java

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    7372     * <li>minLength must be less than or equal to maxLength 
    7473     * </ul> 
    75      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     74     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    7675     * </p> 
    7776     *  
     
    9796        // check validity of the parameters 
    9897        if (numSequences < 1) { 
    99             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     98            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    10099                numSequences); 
    101100        } 
    102101        if (maxLength < 1) { 
    103             throw new InvalidParameterException( 
     102            throw new IllegalArgumentException( 
    104103                                                "maximal allowed length of test cases must be at least 1 but is " + 
    105104                                                    maxLength); 
    106105        } 
    107106        if (minLength > maxLength) { 
    108             throw new InvalidParameterException( 
     107            throw new IllegalArgumentException( 
    109108                                                "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 
    110109                                                    minLength + " ; max length: " + maxLength + ")"); 
     
    128127    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    129128        if (model == null) { 
    130             throw new InvalidParameterException("model must not be null!"); 
     129            throw new IllegalArgumentException("model must not be null!"); 
    131130        } 
    132131 
  • trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/HybridGenerator.java

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    6160     * <li>length must be at least 1 
    6261     * </ul> 
    63      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     62     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    6463     * </p> 
    6564     *  
     
    7776        // check validity of the parameters 
    7877        if (numSequences < 1) { 
    79             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     78            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    8079                numSequences); 
    8180        } 
    8281        if (length < 1) { 
    83             throw new InvalidParameterException("length of test cases must be at least 1 but is " + 
     82            throw new IllegalArgumentException("length of test cases must be at least 1 but is " + 
    8483                length); 
    8584        } 
     
    102101    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    103102        if (model == null) { 
    104             throw new InvalidParameterException("model must not be null!"); 
     103            throw new IllegalArgumentException("model must not be null!"); 
    105104        } 
    106105 
  • trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/RandomWalkGenerator.java

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.HashSet; 
     
    7574     * <li>maxIter must be greater than or equal to numSequences 
    7675     * </ul> 
    77      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     76     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    7877     * </p> 
    7978     *  
     
    9998        // check validity of the parameters 
    10099        if (numSequences < 1) { 
    101             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     100            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    102101                numSequences); 
    103102        } 
    104103        if (maxLength < 1) { 
    105             throw new InvalidParameterException( 
     104            throw new IllegalArgumentException( 
    106105                                                "maximal allowed length of test cases must be at least 1 but is " + 
    107106                                                    maxLength); 
    108107        } 
    109108        if (minLength > maxLength) { 
    110             throw new InvalidParameterException( 
     109            throw new IllegalArgumentException( 
    111110                                                "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 
    112111                                                    minLength + " ; max length: " + maxLength + ")"); 
    113112        } 
    114113        if (maxIter < numSequences) { 
    115             throw new InvalidParameterException( 
     114            throw new IllegalArgumentException( 
    116115                                                "maximal number of iterations must greater than or equal to the number of sequences (number of sequences: " + 
    117116                                                    numSequences + 
     
    138137    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    139138        if (model == null) { 
    140             throw new InvalidParameterException("model must not be null!"); 
     139            throw new IllegalArgumentException("model must not be null!"); 
    141140        } 
    142141 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/DeterministicFiniteAutomatonTest.java

    r553 r766  
    3636        } 
    3737 
    38         @Test(expected = java.security.InvalidParameterException.class) 
     38        @Test(expected = java.lang.IllegalArgumentException.class) 
    3939        public void testDeterministicFiniteAutomaton_2() throws Exception { 
    4040                new DeterministicFiniteAutomaton(null); 
     
    106106        } 
    107107 
    108         @Test(expected = java.security.InvalidParameterException.class) 
     108        @Test(expected = java.lang.IllegalArgumentException.class) 
    109109        public void testGetProbability_5() throws Exception { 
    110110                DeterministicFiniteAutomaton fixture = new DeterministicFiniteAutomaton( 
     
    120120        } 
    121121 
    122         @Test(expected = java.security.InvalidParameterException.class) 
     122        @Test(expected = java.lang.IllegalArgumentException.class) 
    123123        public void testGetProbability_6() throws Exception { 
    124124                DeterministicFiniteAutomaton fixture = new DeterministicFiniteAutomaton( 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/FirstOrderMarkovModelTest.java

    r553 r766  
    3535        } 
    3636 
    37         @Test(expected = java.security.InvalidParameterException.class) 
     37        @Test(expected = java.lang.IllegalArgumentException.class) 
    3838        public void testFirstOrderMarkovModel_2() throws Exception { 
    3939                new FirstOrderMarkovModel(null); 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/HighOrderMarkovModelTest.java

    r553 r766  
    4949        } 
    5050 
    51         @Test(expected = java.security.InvalidParameterException.class) 
     51        @Test(expected = java.lang.IllegalArgumentException.class) 
    5252        public void testHighOrderMarkovModel_3() throws Exception { 
    5353                int maxOrder = 1; 
     
    5757        } 
    5858 
    59         @Test(expected = java.security.InvalidParameterException.class) 
     59        @Test(expected = java.lang.IllegalArgumentException.class) 
    6060        public void testHighOrderMarkovModel_4() throws Exception { 
    6161                int maxOrder = -1; 
     
    188188        } 
    189189 
    190         @Test(expected = java.security.InvalidParameterException.class) 
     190        @Test(expected = java.lang.IllegalArgumentException.class) 
    191191        public void testGetProbability_8() throws Exception { 
    192192                int markovOrder = 0; 
     
    204204        } 
    205205 
    206         @Test(expected = java.security.InvalidParameterException.class) 
     206        @Test(expected = java.lang.IllegalArgumentException.class) 
    207207        public void testGetProbability_9() throws Exception { 
    208208                int markovOrder = 0; 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/IncompleteMemoryTest.java

    r518 r766  
    2727        } 
    2828 
    29         @Test(expected = java.security.InvalidParameterException.class) 
     29        @Test(expected = java.lang.IllegalArgumentException.class) 
    3030        public void testIncompleteMemory_2() 
    3131                throws Exception { 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/PredictionByPartialMatchTest.java

    r553 r766  
    4040        } 
    4141         
    42         @Test(expected = java.security.InvalidParameterException.class) 
     42        @Test(expected = java.lang.IllegalArgumentException.class) 
    4343        public void testPredictionByPartialMatch_2() throws Exception { 
    4444                int markovOrder = -1; 
     
    4848        } 
    4949         
    50         @Test(expected = java.security.InvalidParameterException.class) 
     50        @Test(expected = java.lang.IllegalArgumentException.class) 
    5151        public void testPredictionByPartialMatch_3() throws Exception { 
    5252                int markovOrder = 2; 
     
    7272        } 
    7373         
    74         @Test(expected = java.security.InvalidParameterException.class) 
     74        @Test(expected = java.lang.IllegalArgumentException.class) 
    7575        public void testPredictionByPartialMatch_5() throws Exception { 
    7676                int markovOrder = -1; 
     
    8181        } 
    8282         
    83         @Test(expected = java.security.InvalidParameterException.class) 
     83        @Test(expected = java.lang.IllegalArgumentException.class) 
    8484        public void testPredictionByPartialMatch_6() throws Exception { 
    8585                int markovOrder = 2; 
     
    9090        } 
    9191         
    92         @Test(expected = java.security.InvalidParameterException.class) 
     92        @Test(expected = java.lang.IllegalArgumentException.class) 
    9393        public void testPredictionByPartialMatch_7() throws Exception { 
    9494                int markovOrder = 2; 
     
    9999        } 
    100100         
    101         @Test(expected = java.security.InvalidParameterException.class) 
     101        @Test(expected = java.lang.IllegalArgumentException.class) 
    102102        public void testPredictionByPartialMatch_8() throws Exception { 
    103103                int markovOrder = 2; 
     
    125125        } 
    126126         
    127         @Test(expected = java.security.InvalidParameterException.class) 
     127        @Test(expected = java.lang.IllegalArgumentException.class) 
    128128        public void testPredictionByPartialMatch_10() throws Exception { 
    129129                int markovOrder = -1; 
     
    135135        } 
    136136         
    137         @Test(expected = java.security.InvalidParameterException.class) 
     137        @Test(expected = java.lang.IllegalArgumentException.class) 
    138138        public void testPredictionByPartialMatch_11() throws Exception { 
    139139                int markovOrder = 2; 
     
    145145        } 
    146146         
    147         @Test(expected = java.security.InvalidParameterException.class) 
     147        @Test(expected = java.lang.IllegalArgumentException.class) 
    148148        public void testPredictionByPartialMatch_12() throws Exception { 
    149149                int markovOrder = 2; 
     
    155155        } 
    156156         
    157         @Test(expected = java.security.InvalidParameterException.class) 
     157        @Test(expected = java.lang.IllegalArgumentException.class) 
    158158        public void testPredictionByPartialMatch_13() throws Exception { 
    159159                int markovOrder = 2; 
     
    165165        } 
    166166         
    167         @Test(expected = java.security.InvalidParameterException.class) 
     167        @Test(expected = java.lang.IllegalArgumentException.class) 
    168168        public void testPredictionByPartialMatch_14() throws Exception { 
    169169                int markovOrder = 2; 
     
    175175        } 
    176176         
    177         @Test(expected = java.security.InvalidParameterException.class) 
     177        @Test(expected = java.lang.IllegalArgumentException.class) 
    178178        public void testPredictionByPartialMatch_15() throws Exception { 
    179179                int markovOrder = 2; 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/TrieBasedModelTest.java

    r553 r766  
    267267        } 
    268268 
    269         @Test(expected = java.security.InvalidParameterException.class) 
     269        @Test(expected = java.lang.IllegalArgumentException.class) 
    270270        public void testTrieBasedModel_2() throws Exception { 
    271271                int markovOrder = -1; 
     
    275275        } 
    276276 
    277         @Test(expected = java.security.InvalidParameterException.class) 
     277        @Test(expected = java.lang.IllegalArgumentException.class) 
    278278        public void testTrieBasedModel_3() throws Exception { 
    279279                int markovOrder = 2; 
     
    377377        } 
    378378 
    379         @Test(expected = java.security.InvalidParameterException.class) 
     379        @Test(expected = java.lang.IllegalArgumentException.class) 
    380380        public void testGenerateSequences_3() throws Exception { 
    381381                int markovOrder = 2; 
     
    423423        } 
    424424 
    425         @Test(expected = java.security.InvalidParameterException.class) 
     425        @Test(expected = java.lang.IllegalArgumentException.class) 
    426426        public void testGenerateValidSequences_2() throws Exception { 
    427427                int markovOrder = 2; 
     
    570570        } 
    571571         
    572         @Test(expected = java.security.InvalidParameterException.class) 
     572        @Test(expected = java.lang.IllegalArgumentException.class) 
    573573        public void testTrain_3() throws Exception { 
    574574                int markovOrder = 2; 
     
    595595        } 
    596596 
    597         @Test(expected = java.security.InvalidParameterException.class) 
     597        @Test(expected = java.lang.IllegalArgumentException.class) 
    598598        public void testUpdate_2() throws Exception { 
    599599                int markovOrder = 2; 
  • trunk/quest-core-usageprofiles-test/src/test/java/de/ugoe/cs/quest/usageprofiles/TrieTest.java

    r518 r766  
    5959        } 
    6060 
    61         @Test(expected = java.security.InvalidParameterException.class) 
     61        @Test(expected = java.lang.IllegalArgumentException.class) 
    6262        public void testTrie_3() throws Exception { 
    6363                new Trie<String>(null); 
     
    159159        } 
    160160 
    161         @Test(expected = java.security.InvalidParameterException.class) 
     161        @Test(expected = java.lang.IllegalArgumentException.class) 
    162162        public void testGetChildCreate_2() throws Exception { 
    163163                Trie<String> fixture = new Trie<String>(); 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/DeterministicFiniteAutomaton.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedList; 
     
    5251    public double getProbability(List<Event> context, Event symbol) { 
    5352        if (context == null) { 
    54             throw new InvalidParameterException("context must not be null"); 
     53            throw new IllegalArgumentException("context must not be null"); 
    5554        } 
    5655        if (symbol == null) { 
    57             throw new InvalidParameterException("symbol must not be null"); 
     56            throw new IllegalArgumentException("symbol must not be null"); 
    5857        } 
    5958        double result = 0.0d; 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/HighOrderMarkovModel.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedList; 
     
    5251    public double getProbability(List<Event> context, Event symbol) { 
    5352        if (context == null) { 
    54             throw new InvalidParameterException("context must not be null"); 
     53            throw new IllegalArgumentException("context must not be null"); 
    5554        } 
    5655        if (symbol == null) { 
    57             throw new InvalidParameterException("symbol must not be null"); 
     56            throw new IllegalArgumentException("symbol must not be null"); 
    5857        } 
    5958        double result = 0.0d; 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/IStochasticProcess.java

    r655 r766  
    22 
    33import java.io.Serializable; 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.List; 
     
    3130     * @return probabilty the {@code symbol} is the next event, given the last events 
    3231     *         {@code context} 
    33      * @throws InvalidParameterException 
     32     * @throws IllegalArgumentException 
    3433     *             thrown if context or symbol is null 
    3534     */ 
     
    4443     *            sequences of which the probability is calculated 
    4544     * @return probability of the sequences; 1.0 if sequence is empty or null 
    46      * @throws InvalidParameterException 
     45     * @throws IllegalArgumentException 
    4746     *             thrown if sequence is null 
    4847     */ 
     
    9089     * @return generated sequences 
    9190     * @see #generateSequences(int, boolean) 
    92      * @throws InvalidParameterException 
     91     * @throws IllegalArgumentException 
    9392     *             thrown if length is less than or equal to 0 
    9493     */ 
     
    108107     *            if true, all generated sequences start with {@link Event#STARTEVENT} 
    109108     * @return generated sequences 
    110      * @throws InvalidParameterException 
     109     * @throws IllegalArgumentException 
    111110     *             thrown if length is less than or equal to 0 
    112111     */ 
     
    123122     * @param length 
    124123     * @return generated sequences 
    125      * @throws InvalidParameterException 
     124     * @throws IllegalArgumentException 
    126125     *             thrown if length is less than or equal to 0 
    127126     */ 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/IncompleteMemory.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.LinkedList; 
    54import java.util.List; 
     
    4140     * @param length 
    4241     *            number of recent events that are remembered 
    43      * @throws InvalidParameterException 
     42     * @throws IllegalArgumentException 
    4443     *             This exception is thrown if the length is smaller than 1 
    4544     */ 
    4645    public IncompleteMemory(int length) { 
    4746        if (length < 1) { 
    48             throw new InvalidParameterException("Length of IncompleteMemory must be at least 1."); 
     47            throw new IllegalArgumentException("Length of IncompleteMemory must be at least 1."); 
    4948        } 
    5049        this.length = length; 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/PredictionByPartialMatch.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.LinkedList; 
     
    9089     * @param probEscape 
    9190     *            escape probability used by the model 
    92      * @throws InvalidParameterException 
     91     * @throws IllegalArgumentException 
    9392     *             thrown if minOrder is less than 0 or greater than markovOrder or probEscape is 
    9493     *             not in the interval (0,1) 
     
    9796        super(markovOrder, r); 
    9897        if (minOrder < 0) { 
    99             throw new InvalidParameterException("minOrder must be greather than or equal to 0"); 
     98            throw new IllegalArgumentException("minOrder must be greather than or equal to 0"); 
    10099        } 
    101100        if (minOrder > markovOrder) { 
    102             throw new InvalidParameterException( 
     101            throw new IllegalArgumentException( 
    103102                                                "minOrder must be less than or equal to markovOrder"); 
    104103        } 
    105104        if (probEscape <= 0.0 || probEscape >= 1.0) { 
    106             throw new InvalidParameterException("probEscape must be in the interval (0,1)"); 
     105            throw new IllegalArgumentException("probEscape must be in the interval (0,1)"); 
    107106        } 
    108107        this.probEscape = probEscape; 
     
    147146    public double getProbability(List<Event> context, Event symbol) { 
    148147        if (context == null) { 
    149             throw new InvalidParameterException("context must not be null"); 
     148            throw new IllegalArgumentException("context must not be null"); 
    150149        } 
    151150        if (symbol == null) { 
    152             throw new InvalidParameterException("symbol must not be null"); 
     151            throw new IllegalArgumentException("symbol must not be null"); 
    153152        } 
    154153        double result = 0.0d; 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/Trie.java

    r655 r766  
    22 
    33import java.io.Serializable; 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.HashSet; 
     
    7170    public Trie(Trie<T> other) { 
    7271        if (other == null) { 
    73             throw new InvalidParameterException("other trie must not be null"); 
     72            throw new IllegalArgumentException("other trie must not be null"); 
    7473        } 
    7574        rootNode = new TrieNode<T>(other.rootNode); 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/TrieBasedModel.java

    r655 r766  
    11package de.ugoe.cs.quest.usageprofiles; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    6665     * @param r 
    6766     *            random number generator used by probabilistic methods of the class 
    68      * @throws InvalidParameterException 
     67     * @throws IllegalArgumentException 
    6968     *             thrown if markovOrder is less than 0 or the random number generator r is null 
    7069     */ 
     
    7271        super(); 
    7372        if (markovOrder < 0) { 
    74             throw new InvalidParameterException("markov order must not be less than 0"); 
     73            throw new IllegalArgumentException("markov order must not be less than 0"); 
    7574        } 
    7675        if (r == null) { 
    77             throw new InvalidParameterException("random number generator r must not be null"); 
     76            throw new IllegalArgumentException("random number generator r must not be null"); 
    7877        } 
    7978        this.trieOrder = markovOrder + 1; 
     
    9089     * @param sequences 
    9190     *            training data 
    92      * @throws InvalidParameterException 
     91     * @throws IllegalArgumentException 
    9392     *             thrown is sequences is null 
    9493     */ 
     
    107106     * @param sequences 
    108107     *            training data 
    109      * @throws InvalidParameterException 
     108     * @throws IllegalArgumentException 
    110109     *             thrown is sequences is null 
    111110     */ 
    112111    public void update(Collection<List<Event>> sequences) { 
    113112        if (sequences == null) { 
    114             throw new InvalidParameterException("sequences must not be null"); 
     113            throw new IllegalArgumentException("sequences must not be null"); 
    115114        } 
    116115        if (trie == null) { 
     
    300299        Set<List<Event>> sequenceSet = new LinkedHashSet<List<Event>>(); 
    301300        if (length < 1) { 
    302             throw new InvalidParameterException( 
     301            throw new IllegalArgumentException( 
    303302                                                "Length of generated subsequences must be at least 1."); 
    304303        } 
     
    361360    public double getProbability(List<Event> sequence) { 
    362361        if (sequence == null) { 
    363             throw new InvalidParameterException("sequence must not be null"); 
     362            throw new IllegalArgumentException("sequence must not be null"); 
    364363        } 
    365364        double prob = 1.0; 
  • trunk/quest-core-usageprofiles/src/main/java/de/ugoe/cs/quest/usageprofiles/TrieNode.java

    r655 r766  
    22 
    33import java.io.Serializable; 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.LinkedList; 
     
    7877    TrieNode(T symbol) { 
    7978        if (symbol == null) { 
    80             throw new InvalidParameterException( 
     79            throw new IllegalArgumentException( 
    8180                                                "symbol must not be null. null is reserved for root node!"); 
    8281        } 
     
    9594    TrieNode(TrieNode<T> other) { 
    9695        if (other == null) { 
    97             throw new InvalidParameterException("other must not be null"); 
     96            throw new IllegalArgumentException("other must not be null"); 
    9897        } 
    9998        symbol = other.symbol; 
  • trunk/quest-plugin-core-test/src/test/java/de/ugoe/cs/quest/plugin/PluginLoaderTest.java

    r531 r766  
    2424        } 
    2525         
    26         @Test(expected = java.security.InvalidParameterException.class) 
     26        @Test(expected = java.lang.IllegalArgumentException.class) 
    2727        public void testPluginLoader_2() throws Exception { 
    2828                new PluginLoader(null); 
    2929        } 
    3030         
    31         @Test(expected = java.security.InvalidParameterException.class) 
     31        @Test(expected = java.lang.IllegalArgumentException.class) 
    3232        public void testPluginLoader_3() throws Exception { 
    3333                new PluginLoader(new File("testdata/de.ugoe.cs.quest.plugin.PluginLoaderTest/jfcmonitor.jar")); 
  • trunk/quest-plugin-core/src/main/java/de/ugoe/cs/quest/plugin/PluginLoader.java

    r582 r766  
    1111import java.net.URL; 
    1212import java.net.URLClassLoader; 
    13 import java.security.InvalidParameterException; 
    1413import java.util.Collection; 
    1514import java.util.Collections; 
     
    5251         *            handle of the directory; in case the handle is 
    5352         *            <code>null</code> or does not describe a directory, an 
    54          *            {@link InvalidParameterException} is thrown 
     53         *            {@link IllegalArgumentException} is thrown 
    5554         */ 
    5655        public PluginLoader(File pluginDir) { 
    5756                if (pluginDir == null) { 
    58                         throw new InvalidParameterException( 
     57                        throw new IllegalArgumentException( 
    5958                                        "Parameter pluginDir must not be null!"); 
    6059                } 
    6160                if (!pluginDir.isDirectory()) { 
    62                         throw new InvalidParameterException("File " + pluginDir.getPath() 
     61                        throw new IllegalArgumentException("File " + pluginDir.getPath() 
    6362                                        + " is not a directory"); 
    6463                } 
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgTestCasesToSequences.java

    r728 r766  
    33import java.io.File; 
    44import java.io.FilenameFilter; 
    5 import java.security.InvalidParameterException; 
    65import java.util.Collection; 
    76import java.util.LinkedList; 
     
    4342                        } 
    4443                } catch (Exception e) { 
    45                         throw new InvalidParameterException(); 
     44                        throw new IllegalArgumentException(); 
    4645                } 
    4746 
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToDFA.java

    r667 r766  
    11package de.ugoe.cs.quest.plugin.guitar.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3332                        modelname = (String) parameters.get(1); 
    3433                } catch (Exception e) { 
    35                         throw new InvalidParameterException(); 
     34                        throw new IllegalArgumentException(); 
    3635                } 
    3736 
  • trunk/quest-plugin-guitar/src/main/java/de/ugoe/cs/quest/plugin/guitar/commands/CMDefgToMM.java

    r667 r766  
    11package de.ugoe.cs.quest.plugin.guitar.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    3332                        modelname = (String) parameters.get(1); 
    3433                } catch (Exception e) { 
    35                         throw new InvalidParameterException(); 
     34                        throw new IllegalArgumentException(); 
    3635                } 
    3736 
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java

    r743 r766  
    88import java.io.InputStreamReader; 
    99import java.io.UnsupportedEncodingException; 
    10 import java.security.InvalidParameterException; 
    1110import java.util.ArrayList; 
    1211import java.util.Collection; 
     
    197196    public void parseFile(String filename) { 
    198197        if (filename == null) { 
    199             throw new InvalidParameterException("filename must not be null"); 
     198            throw new IllegalArgumentException("filename must not be null"); 
    200199        } 
    201200 
     
    213212    public void parseFile(File file) { 
    214213        if (file == null) { 
    215             throw new InvalidParameterException("file must not be null"); 
     214            throw new IllegalArgumentException("file must not be null"); 
    216215        } 
    217216 
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDparseDirJFC.java

    r752 r766  
    22 
    33import java.io.File; 
    4 import java.security.InvalidParameterException; 
    54import java.util.Collection; 
    65import java.util.List; 
     
    4443        } 
    4544        catch (Exception e) { 
    46             throw new InvalidParameterException(); 
     45            throw new IllegalArgumentException(); 
    4746        } 
    4847 
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDparseJFC.java

    r680 r766  
    11package de.ugoe.cs.quest.plugin.jfc.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    3938                        } 
    4039                } catch (Exception e) { 
    41                         throw new InvalidParameterException(); 
     40                        throw new IllegalArgumentException(); 
    4241                } 
    4342                 
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDpreprocessDirJFC.java

    r728 r766  
    99import java.io.OutputStreamWriter; 
    1010import java.io.UnsupportedEncodingException; 
    11 import java.security.InvalidParameterException; 
    1211import java.util.List; 
    1312import java.util.logging.Level; 
     
    4241                        targetPath = (String) parameters.get(1); 
    4342                } catch (Exception e) { 
    44                         throw new InvalidParameterException(); 
     43                        throw new IllegalArgumentException(); 
    4544                } 
    4645 
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/commands/CMDpreprocessJFC.java

    r664 r766  
    99import java.io.OutputStreamWriter; 
    1010import java.io.UnsupportedEncodingException; 
    11 import java.security.InvalidParameterException; 
    1211import java.util.List; 
    1312 
     
    4140                        target = (String) parameters.get(1); 
    4241                } catch (Exception e) { 
    43                         throw new InvalidParameterException(); 
     42                        throw new IllegalArgumentException(); 
    4443                } 
    4544 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/EventGenerator.java

    r655 r766  
    22 
    33import java.io.IOException; 
    4 import java.security.InvalidParameterException; 
    54import java.util.ArrayList; 
    65import java.util.HashMap; 
     
    174173                            generateReplayMessage(replayMessageSpec); 
    175174                        } 
    176                         catch (InvalidParameterException e) { 
     175                        catch (IllegalArgumentException e) { 
    177176                            Console.printerrln(e.getMessage()); 
    178177                            // TODO currentToken.invalidateReplay(); 
     
    184183                            // TODO currentToken.invalidateReplay(); 
    185184                        } 
    186                         catch (InvalidParameterException e) { 
     185                        catch (IllegalArgumentException e) { 
    187186                            Console.printerrln(e.getMessage()); 
    188187                            // TODO currentToken.invalidateReplay(); 
     
    242241                    isMatch = matchMultipleConditions(messageCondition, nextMessageCondition); 
    243242                } 
    244                 catch (InvalidParameterException e) { 
     243                catch (IllegalArgumentException e) { 
    245244                    Console.printerrln(e.getMessage()); 
    246245                } 
     
    250249                    isMatch = matchSingleMessage(messageCondition); 
    251250                } 
    252                 catch (InvalidParameterException e) { 
     251                catch (IllegalArgumentException e) { 
    253252                    Console.printerrln(e.getMessage()); 
    254253                } 
     
    606605 
    607606            if (seqVar.size() != generatedMessageSeq.size()) { 
    608                 throw new InvalidParameterException 
     607                throw new IllegalArgumentException 
    609608                    ("Failure generating replay sequence for rule " + currentRuleName + 
    610609                     ": One or more of the sequence variables used to generate a sequence have " + 
     
    656655             
    657656            if (seqVar.size() != generatedMessageSeq.size()) { 
    658                 throw new InvalidParameterException 
     657                throw new IllegalArgumentException 
    659658                    ("Failure generating replay sequence for rule " + currentRuleName + 
    660659                     ": One or more of the sequence variables used to generate a sequence have " + 
     
    712711             
    713712            if (seqVar.size() != generatedMessageSeq.size()) { 
    714                 throw new InvalidParameterException 
     713                throw new IllegalArgumentException 
    715714                    ("Failure generating replay sequence for rule " + currentRuleName + 
    716715                     ": One or more of the sequence variables used to generate a sequence have " + 
     
    783782     *            object identifier in the storage 
    784783     * @return message retrieved from the storage 
    785      * @throws InvalidParameterException 
     784     * @throws IllegalArgumentException 
    786785     *             thrown in case of invalid uses of "this" or if no message with the identifier obj 
    787786     *             is found in the storage 
    788787     */ 
    789788    private ReplayWindowsMessage getStoredMessageVariable(WindowsMessage currentMessage, String obj) 
    790         throws InvalidParameterException 
     789        throws IllegalArgumentException 
    791790    { 
    792791        ReplayWindowsMessage varMessage = null; 
    793792        if (obj.equals("this")) { 
    794793            if (currentMessage == null) { 
    795                 throw new InvalidParameterException("Failure obtaining term value for rule " + 
     794                throw new IllegalArgumentException("Failure obtaining term value for rule " + 
    796795                    currentRuleName + 
    797796                    ": \"this\" is not a valid name for generating runtime messages."); 
     
    805804            } 
    806805            else { 
    807                 throw new InvalidParameterException("Failure obtaining term value for rule " + 
     806                throw new IllegalArgumentException("Failure obtaining term value for rule " + 
    808807                    currentRuleName + ": No message \"" + obj + "\" stored."); 
    809808            } 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/MFCLogParser.java

    r655 r766  
    66import java.io.IOException; 
    77import java.io.InputStreamReader; 
    8 import java.security.InvalidParameterException; 
    98import java.util.Collection; 
    109import java.util.HashMap; 
     
    143142    public void parseFile(String filename) { 
    144143        if (filename == null) { 
    145             throw new InvalidParameterException("filename must not be null"); 
     144            throw new IllegalArgumentException("filename must not be null"); 
    146145        } 
    147146 
     
    159158    public void parseFile(File file) { 
    160159        if (file == null) { 
    161             throw new InvalidParameterException("file must not be null"); 
     160            throw new IllegalArgumentException("file must not be null"); 
    162161        } 
    163162 
     
    331330                    sequenceSplitter.addMessage(message); 
    332331                } 
    333                 catch (InvalidParameterException e) { 
     332                catch (IllegalArgumentException e) { 
    334333                    Console.traceln(Level.WARNING, e.getMessage() + " WindowsMessage " + currentMessageType + 
    335334                                    " ignored."); 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertDirToXml.java

    r728 r766  
    33import java.io.FileNotFoundException; 
    44import java.io.IOException; 
    5 import java.security.InvalidParameterException; 
    65import java.util.List; 
    76 
     
    3837        public void run(List<Object> parameters) { 
    3938                if (parameters.size() < 2) { 
    40                         throw new InvalidParameterException(); 
     39                        throw new IllegalArgumentException(); 
    4140                } 
    4241                String path = (String) parameters.get(0); 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDconvertToXml.java

    r664 r766  
    33import java.io.FileNotFoundException; 
    44import java.io.IOException; 
    5 import java.security.InvalidParameterException; 
    65import java.util.List; 
    76 
     
    3837        public void run(List<Object> parameters) { 
    3938                if (parameters.size() < 2) { 
    40                         throw new InvalidParameterException(); 
     39                        throw new IllegalArgumentException(); 
    4140                } 
    4241                String source = (String) parameters.get(0); 
  • trunk/quest-plugin-mfc/src/main/java/de/ugoe/cs/quest/plugin/mfc/commands/CMDparseXML.java

    r667 r766  
    11package de.ugoe.cs.quest.plugin.mfc.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.List; 
     
    5352        } 
    5453        catch (Exception e) { 
    55             throw new InvalidParameterException(); 
     54            throw new IllegalArgumentException(); 
    5655        } 
    5756 
  • trunk/quest-plugin-php/src/main/java/de/ugoe/cs/quest/plugin/php/commands/CMDloadWebSequences.java

    r667 r766  
    33import java.io.FileNotFoundException; 
    44import java.io.IOException; 
    5 import java.security.InvalidParameterException; 
    65import java.text.ParseException; 
    76import java.util.Collection; 
     
    3332        public void run(List<Object> parameters) { 
    3433                if (parameters.size() < 1) { 
    35                         throw new InvalidParameterException(); 
     34                        throw new IllegalArgumentException(); 
    3635                } 
    3736                String source; 
     
    6160                        } 
    6261                } catch (Exception e) { 
    63                         throw new InvalidParameterException(); 
     62                        throw new IllegalArgumentException(); 
    6463                } 
    6564 
  • 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 
  • trunk/quest-ui-swt/src/main/java/de/ugoe/cs/quest/ui/swt/commands/CMDshowSequences.java

    r667 r766  
    11package de.ugoe.cs.quest.ui.swt.commands; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.List; 
    54 
     
    4443        } 
    4544        catch (Exception e) { 
    46             throw new InvalidParameterException(); 
     45            throw new IllegalArgumentException(); 
    4746        } 
    4847 
Note: See TracChangeset for help on using the changeset viewer.