summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-28 01:16:02 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-28 01:16:02 +0100
commit471c4ab2eac23f4ca4fa806e3c06bacfd62a505a (patch)
treeae22538e592a8159652e49438ae71b772c21c5ae /src
parentCreate GameController (diff)
downloadseven-wonders-471c4ab2eac23f4ca4fa806e3c06bacfd62a505a.tar.gz
seven-wonders-471c4ab2eac23f4ca4fa806e3c06bacfd62a505a.tar.bz2
seven-wonders-471c4ab2eac23f4ca4fa806e3c06bacfd62a505a.zip
Remove useless parent exception
Diffstat (limited to 'src')
-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