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;
|
errorType = EnumError.ELEMENTNOTFOUND;
|
||||||
} else if (message.contains("no right")) {
|
} else if (message.contains("no right")) {
|
||||||
errorType = EnumError.NOPERMISSION;
|
errorType = EnumError.NOPERMISSION;
|
||||||
} else {
|
} else if (message.contains("webuntis.com")) {
|
||||||
|
errorType = EnumError.NOCONNECTION;
|
||||||
|
}else {
|
||||||
switch (message) {
|
switch (message) {
|
||||||
case "bad credentials":
|
case "bad credentials":
|
||||||
errorType = EnumError.BADCREDENTIALS;
|
errorType = EnumError.BADCREDENTIALS;
|
||||||
|
|
Loading…
Reference in New Issue