error handling
This commit is contained in:
parent
4d1b69d682
commit
2f5794350b
@ -63,8 +63,8 @@ public class Main {
|
||||
cause = cause.getCause();
|
||||
}
|
||||
errorMessage = cause.getLocalizedMessage();
|
||||
if (errorMessage.contains("de.hsadmin.rpc.VOUserException:")) {
|
||||
errorMessage = errorMessage.substring(errorMessage.indexOf("de.hsadmin.rpc.VOUserException:") + 31).trim();
|
||||
if (errorMessage.contains("de.hsadmin.module.error.UserException:")) {
|
||||
errorMessage = errorMessage.substring(errorMessage.indexOf("de.hsadmin.module.error.UserException:") + 31).trim();
|
||||
}
|
||||
return errorMessage;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user