diff options
| author | ilotterytea <iltsu@alright.party> | 2025-01-20 23:32:34 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-01-20 23:42:02 +0500 |
| commit | 8ecc23455f36da01c373b99a536ecd326b26c01a (patch) | |
| tree | 448977fed53ad8a04cf2c80357032c405b0ca1f8 /shared/src/main/java/kz/ilotterytea/frogartha/exceptions | |
| parent | 8d8eb55d4f3ad98eba837e702ee79187f735f177 (diff) | |
feat: connection between server and game
Diffstat (limited to 'shared/src/main/java/kz/ilotterytea/frogartha/exceptions')
| -rw-r--r-- | shared/src/main/java/kz/ilotterytea/frogartha/exceptions/PlayerKickException.java | 15 |
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"); + } +} |
