diff --git a/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/PlayerIdNotFoundException.java b/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/PlayerIdNotFoundException.java index 59f5501b5ced9e64462d9a239ff0f72b5c6f858e..8f4ae1099eba09406b1d2fe756b838a0ee4d39f5 100644 --- a/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/PlayerIdNotFoundException.java +++ b/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/PlayerIdNotFoundException.java @@ -1,7 +1,9 @@ package hdm.mi.sthbackend.exeptions; +import java.util.UUID; + public class PlayerIdNotFoundException extends Exception { - public PlayerIdNotFoundException (String playerId) { - super(String.format("PlayerId %s not found", playerId)); + public PlayerIdNotFoundException (UUID playerId) { + super(String.format("PlayerId %s not found", playerId.toString())); } } diff --git a/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/TournamentIdNotFoundException.java b/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/TournamentIdNotFoundException.java new file mode 100644 index 0000000000000000000000000000000000000000..85f5a24b84698a77cb8d7b084bf56aa2478730dc --- /dev/null +++ b/sth-backend/src/main/java/hdm/mi/sthbackend/exeptions/TournamentIdNotFoundException.java @@ -0,0 +1,10 @@ +package hdm.mi.sthbackend.exeptions; + +import java.util.UUID; + +public class TournamentIdNotFoundException extends Exception{ + public TournamentIdNotFoundException(UUID tournamentId) { + super(String.format("TournamentId %s not found", tournamentId.toString())); + + } +}