Add no internet error
This commit is contained in:
parent
212343b303
commit
4f4b31232c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue