public BaiduBCSResponse<BCSServiceException> handle(BCSHttpResponse paramBCSHttpResponse) {
		BaiduBCSResponse<BCSServiceException> localBaiduBCSResponse = new BaiduBCSResponse<BCSServiceException>();

		String str1 = getResponseContentByStr(paramBCSHttpResponse);
		int i = -1;
		String str2 = "";

		if (0 != str1.length()) {
			try {
				JSONObject json = new JSONObject(str1);
				JSONObject errorJSON = json.getJSONObject("Error");
				i = errorJSON.getInt("code");
				str2 = errorJSON.getString("Message");
			} catch (Exception localException) {
				log.warn("analyze bcs error response json failed.", localException);
			}
		}
		BCSServiceException localBCSServiceException = new BCSServiceException("[StatusCode:" + paramBCSHttpResponse.getStatusCode() + "] [ErrorMsg:" + str1 + "]");
		localBCSServiceException.setHttpErrorCode(paramBCSHttpResponse.getStatusCode());
		localBCSServiceException.setRequestId(paramBCSHttpResponse.getHeaders().get("x-bs-request-id"));
		localBCSServiceException.setBcsErrorCode(i);
		localBCSServiceException.setBcsErrorMessage(str2);
		localBaiduBCSResponse.setResult(localBCSServiceException);
		return localBaiduBCSResponse;
	}