RejectedServiceResponse ropResponse = new RejectedServiceResponse(ropRequestContext.getLocale());
writeResponse(ropResponse, servletResponse, ServletRequestContextBuilder.getResponseFormat(servletRequest));
fireAfterDoServiceEvent(ropRequestContext);
} catch (TimeoutException e) {//服务时间超限
RopRequestContext ropRequestContext = buildRequestContextWhenException(servletRequest, beginTime);
TimeoutErrorResponse ropResponse =
new TimeoutErrorResponse(ropRequestContext.getMethod(),
ropRequestContext.getLocale(), serviceMethodTimeout);
writeResponse(ropResponse, servletResponse, ServletRequestContextBuilder.getResponseFormat(servletRequest));
fireAfterDoServiceEvent(ropRequestContext);
} catch (Throwable throwable) {//产生未知的错误
ServiceUnavailableErrorResponse ropResponse =