summaryrefslogtreecommitdiff
path: root/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java
diff options
context:
space:
mode:
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java')
-rw-r--r--shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java b/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java
new file mode 100644
index 0000000..a6d8c0a
--- /dev/null
+++ b/shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java
@@ -0,0 +1,15 @@
+package kz.ilotterytea.frogartha.exceptions;
+
+public class PlayerKickException extends RuntimeException {
+ private PlayerKickException(String message) {
+ super(message);
+ }
+
+ public static PlayerKickException loggedIn() {
+ return new PlayerKickException("You logged in from another location");
+ }
+
+ public static PlayerKickException internalServerError() {
+ return new PlayerKickException("Internal Server Error");
+ }
+}