No functional changes related to r1768168. Uses Multiple catch blocks wherever

it's possible, here with GenericEntityException and GenericServiceException.

Also a generic case and tabs replaced

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1768636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2016-11-08 07:42:45 +00:00
parent 1cce449d52
commit 425e55efc8
2 changed files with 11 additions and 21 deletions
@@ -1649,10 +1649,8 @@ public class EbayStore {
result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_FAIL);
result.put(ModelService.ERROR_MESSAGE_LIST, ProductsExportToEbay.getproductExportFailureMessageList());
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
} catch (GenericServiceException gse) {
return ServiceUtil.returnError(gse.getMessage());
} catch (GenericEntityException|GenericServiceException ge) {
return ServiceUtil.returnError(ge.getMessage());
} catch (Exception e) {
return ServiceUtil.returnError(e.getMessage());
}
@@ -212,7 +212,7 @@ public class EbayStoreAutoPreferences {
}
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
return ServiceUtil.returnError(gee.getMessage());
} catch (Exception e) {
return ServiceUtil.returnFailure(UtilProperties.getMessage(resource, "EbayStoreProblemConnectingToEbaySite", locale) + e);
}
@@ -496,10 +496,8 @@ public class EbayStoreAutoPreferences {
}
}
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
} catch (GenericServiceException gse) {
return ServiceUtil.returnError(gse.getMessage());
} catch (GenericEntityException|GenericServiceException ge) {
return ServiceUtil.returnError(ge.getMessage());
} catch (Exception e) {
return ServiceUtil.returnError(e.getMessage());
}
@@ -571,10 +569,8 @@ public class EbayStoreAutoPreferences {
}
}
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
} catch (GenericServiceException gse) {
return ServiceUtil.returnError(gse.getMessage());
} catch (GenericEntityException|GenericServiceException ge) {
return ServiceUtil.returnError(ge.getMessage());
} catch (Exception e) {
return ServiceUtil.returnError(e.getMessage());
}
@@ -646,10 +642,8 @@ public class EbayStoreAutoPreferences {
}
}
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
} catch (GenericServiceException gse) {
return ServiceUtil.returnError(gse.getMessage());
} catch (GenericEntityException|GenericServiceException ge) {
return ServiceUtil.returnError(ge.getMessage());
} catch (Exception e) {
return ServiceUtil.returnError(e.getMessage());
}
@@ -1152,10 +1146,8 @@ public class EbayStoreAutoPreferences {
}
}
}
} catch (GenericEntityException gee) {
return ServiceUtil.returnError(gee.getMessage());
} catch (GenericServiceException gse) {
return ServiceUtil.returnError(gse.getMessage());
} catch (GenericEntityException|GenericServiceException ge) {
return ServiceUtil.returnError(ge.getMessage());
} catch (Exception e) {
return ServiceUtil.returnError(e.getMessage());
}