Add no internet error

This commit is contained in:
Timo Ley 2020-02-11 18:57:51 +01:00
parent 212343b303
commit 4f4b31232c
1 changed files with 3 additions and 1 deletions

View File

@ -17,7 +17,9 @@ public class APIRequestException extends Exception {
errorType = EnumError.ELEMENTNOTFOUND;
} else if (message.contains("no right")) {
errorType = EnumError.NOPERMISSION;
} else {
} else if (message.contains("webuntis.com")) {
errorType = EnumError.NOCONNECTION;
}else {
switch (message) {
case "bad credentials":
errorType = EnumError.BADCREDENTIALS;