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

Legend:

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