From 8ecc23455f36da01c373b99a536ecd326b26c01a Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Mon, 20 Jan 2025 23:32:34 +0500 Subject: feat: connection between server and game --- .../frogartha/exceptions/PlayerKickException.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java') 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"); + } +} -- cgit v1.2.3