Changeset 766 for trunk/quest-core-events/src/main/java/de
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- 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 2 2 3 3 import java.io.Serializable; 4 import java.security.InvalidParameterException;5 4 import java.util.LinkedList; 6 5 import java.util.List; … … 68 67 public Event(IEventType type) { 69 68 if (type == null) { 70 throw new I nvalidParameterException("Event type must not be null");69 throw new IllegalArgumentException("Event type must not be null"); 71 70 } 72 71 this.type = type; … … 208 207 * @param replayable 209 208 * element that is added to the sequence 210 * @throws I nvalidParameterException209 * @throws IllegalArgumentException 211 210 * thrown is replayable is null 212 211 */ 213 212 public void addReplayable(IReplayable replayable) { 214 213 if (replayable == null) { 215 throw new I nvalidParameterException("replayble must not be null");214 throw new IllegalArgumentException("replayble must not be null"); 216 215 } 217 216 replay.add(replayable); … … 225 224 * @param generatedReplaySeq 226 225 * {@link List} that is added to the sequence 227 * @throws I nvalidParameterException226 * @throws IllegalArgumentException 228 227 * thrown if generatedReplaySeq is null 229 228 */ 230 229 public void addReplayableSequence(List<? extends IReplayable> generatedReplaySeq) { 231 230 if (generatedReplaySeq == null) { 232 throw new I nvalidParameterException("generatedReplaySeq must not be null");231 throw new IllegalArgumentException("generatedReplaySeq must not be null"); 233 232 } 234 233 replay.addAll(generatedReplaySeq); -
trunk/quest-core-events/src/main/java/de/ugoe/cs/quest/eventcore/StringEventType.java
r655 r766 1 1 package de.ugoe.cs.quest.eventcore; 2 3 import java.security.InvalidParameterException;4 2 5 3 /** … … 34 32 * @param str 35 33 * string that identifies the event type 36 * @throws I nvalidParameterException34 * @throws IllegalArgumentException 37 35 * thrown if str is null 38 36 */ 39 public StringEventType(String str) throws I nvalidParameterException {37 public StringEventType(String str) throws IllegalArgumentException { 40 38 if (str == null) { 41 throw new I nvalidParameterException("str must not be null");39 throw new IllegalArgumentException("str must not be null"); 42 40 } 43 41 this.str = str;
Note: See TracChangeset
for help on using the changeset viewer.