summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/org/luxons/sevenwonders/errors/UniqueIdAlreadyUsedException.java15
-rw-r--r--src/main/java/org/luxons/sevenwonders/game/Lobby.java3
2 files changed, 1 insertions, 17 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/errors/UniqueIdAlreadyUsedException.java b/src/main/java/org/luxons/sevenwonders/errors/UniqueIdAlreadyUsedException.java
deleted file mode 100644
index b1b00453..00000000
--- a/src/main/java/org/luxons/sevenwonders/errors/UniqueIdAlreadyUsedException.java
+++ /dev/null
@@ -1,15 +0,0 @@
-package org.luxons.sevenwonders.errors;
-
-public class UniqueIdAlreadyUsedException extends RuntimeException {
-
- private String id;
-
- public UniqueIdAlreadyUsedException(String id) {
- super("'" + id + "'");
- this.id = id;
- }
-
- public String getUsedId() {
- return id;
- }
-}
diff --git a/src/main/java/org/luxons/sevenwonders/game/Lobby.java b/src/main/java/org/luxons/sevenwonders/game/Lobby.java
index 848f3e5d..30b31d4b 100644
--- a/src/main/java/org/luxons/sevenwonders/game/Lobby.java
+++ b/src/main/java/org/luxons/sevenwonders/game/Lobby.java
@@ -3,7 +3,6 @@ package org.luxons.sevenwonders.game;
import java.util.ArrayList;
import java.util.List;
-import org.luxons.sevenwonders.errors.UniqueIdAlreadyUsedException;
import org.luxons.sevenwonders.game.data.GameDefinition;
public class Lobby {
@@ -94,7 +93,7 @@ public class Lobby {
static class PlayerUnderflowException extends IllegalStateException {
}
- static class PlayerNameAlreadyUsedException extends UniqueIdAlreadyUsedException {
+ static class PlayerNameAlreadyUsedException extends RuntimeException {
PlayerNameAlreadyUsedException(String name) {
super(name);
}
bgstack15