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:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user