error handling

This commit is contained in:
Peter Hormanns 2013-11-27 13:43:28 +01:00
parent 4d1b69d682
commit 2f5794350b

View File

@ -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;
}