Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
Location:
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore
Files:
2 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); 
  • 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; 
Note: See TracChangeset for help on using the changeset viewer.