new TimeoutErrorResponse(ropRequestContext.getMethod(),
ropRequestContext.getLocale(), serviceMethodTimeout);
writeResponse(ropResponse, servletResponse, ServletRequestContextBuilder.getResponseFormat(servletRequest));
fireAfterDoServiceEvent(ropRequestContext);
} catch (Throwable throwable) {//产生未知的错误
ServiceUnavailableErrorResponse ropResponse =
new ServiceUnavailableErrorResponse(method, ServletRequestContextBuilder.getLocale(servletRequest), throwable);
writeResponse(ropResponse, servletResponse, ServletRequestContextBuilder.getResponseFormat(servletRequest));
RopRequestContext ropRequestContext = buildRequestContextWhenException(servletRequest, beginTime);
fireAfterDoServiceEvent(ropRequestContext);
}
}