aboutsummaryrefslogtreecommitdiff
path: root/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2022-08-06 17:03:57 +0900
committersyeyoung <cyoung06@naver.com>2022-08-06 17:03:57 +0900
commitbd0576d13fb6b801ebd42532599d37d7c0d68709 (patch)
treef75233c13119c731241e002309b8f8bbd5566075 /loader/src/main/java/kr/syeyoung/dungeonsguide/launcher
parent549b20b8a4b08e60bc1deb10076a15e6f839da19 (diff)
downloadSkyblock-Dungeons-Guide-bd0576d13fb6b801ebd42532599d37d7c0d68709.tar.gz
Skyblock-Dungeons-Guide-bd0576d13fb6b801ebd42532599d37d7c0d68709.tar.bz2
Skyblock-Dungeons-Guide-bd0576d13fb6b801ebd42532599d37d7c0d68709.zip
- Better exception messages
Diffstat (limited to 'loader/src/main/java/kr/syeyoung/dungeonsguide/launcher')
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/AuthServerException.java7
-rw-r--r--loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/NoSuitableLoaderFoundException.java7
2 files changed, 11 insertions, 3 deletions
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/AuthServerException.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/AuthServerException.java
index 22b851a8..abe47881 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/AuthServerException.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/AuthServerException.java
@@ -18,10 +18,13 @@
package kr.syeyoung.dungeonsguide.launcher.exceptions;
-import lombok.AllArgsConstructor;
import org.json.JSONObject;
-@AllArgsConstructor
public class AuthServerException extends RuntimeException {
private JSONObject payload;
+
+ public AuthServerException(JSONObject payload) {
+ super("Auth server threw: \n"+payload);
+ this.payload = payload;
+ }
}
diff --git a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/NoSuitableLoaderFoundException.java b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/NoSuitableLoaderFoundException.java
index e5f50754..c2f9a907 100644
--- a/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/NoSuitableLoaderFoundException.java
+++ b/loader/src/main/java/kr/syeyoung/dungeonsguide/launcher/exceptions/NoSuitableLoaderFoundException.java
@@ -20,8 +20,13 @@ package kr.syeyoung.dungeonsguide.launcher.exceptions;
import lombok.AllArgsConstructor;
-@AllArgsConstructor
public class NoSuitableLoaderFoundException extends RuntimeException {
private String jvmFlag;
private String configuration;
+
+ public NoSuitableLoaderFoundException(String jvmFlag, String configuration) {
+ super("No suitable loader found: (flag: "+jvmFlag+" / config: "+configuration+")");
+ this.jvmFlag = jvmFlag;
+ this.configuration = configuration;
+ }
}