Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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; 
Note: See TracChangeset for help on using the changeset viewer.