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