|
|
@ -157,7 +157,7 @@ public class HttpClientManager { |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
log.error("execute exception", e); |
|
|
|
new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
|
return new Result<String>().error(EpmetErrorCode.SERVER_ERROR.getCode(), e.getMessage()); |
|
|
|
} finally { |
|
|
|
httpMethod.releaseConnection(); |
|
|
|
try { |
|
|
@ -167,7 +167,7 @@ public class HttpClientManager { |
|
|
|
} catch (IOException e) { |
|
|
|
} |
|
|
|
} |
|
|
|
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
|
return new Result<String>().error(EpmetErrorCode.SERVER_ERROR.getCode(), EpmetErrorCode.SERVER_ERROR.getMsg()); |
|
|
|
} |
|
|
|
|
|
|
|
public static void main(String[] args) { |
|
|
|