|
@@ -2,6 +2,7 @@ package com.zfire.jiasm.syncdata.base;
|
|
|
|
|
|
import com.zfire.jiasm.syncdata.constant.DictTypeEnum;
|
|
|
import com.zfire.jiasm.syncdata.constant.RedisConstant;
|
|
|
+import com.zfire.jiasm.syncdata.exception.RemoteServiceException;
|
|
|
import com.zfire.jiasm.syncdata.plus.entity.Brand;
|
|
|
import com.zfire.jiasm.syncdata.plus.entity.SysDict;
|
|
|
import com.zfire.jiasm.syncdata.plus.service.BrandService;
|
|
@@ -101,15 +102,15 @@ public class BaseService {
|
|
|
fos.write(buf,0,size);
|
|
|
}
|
|
|
fos.flush();
|
|
|
- } catch (IOException e){
|
|
|
- } catch (ClassCastException e){
|
|
|
+ } catch (Exception e){
|
|
|
+ throw new RemoteServiceException(e.getMessage());
|
|
|
} finally {
|
|
|
try{
|
|
|
fos.close();
|
|
|
bis.close();
|
|
|
httpUrl.disconnect();
|
|
|
- }catch (IOException e){
|
|
|
- }catch (NullPointerException e){
|
|
|
+ }catch (Exception e){
|
|
|
+ throw new RemoteServiceException(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|