*/
String msg = sw.getBuffer().toString();
if ( msg.length() > 128 ){
msg = msg.substring(0, 128);
}
SVNErrorCode errorCode = svne.getErrorMessage().getErrorCode();
if (errorCode == SVNErrorCode.FS_NOT_DIRECTORY ||
errorCode == SVNErrorCode.FS_NOT_FOUND ||
errorCode == SVNErrorCode.RA_DAV_PATH_NOT_FOUND) {
response.sendError(HttpServletResponse.SC_NOT_FOUND, msg);
} else if (errorCode == SVNErrorCode.NO_AUTH_FILE_PATH) {
response.sendError(HttpServletResponse.SC_FORBIDDEN, msg);
} else if (errorCode == SVNErrorCode.RA_NOT_AUTHORIZED) {
response.sendError(HttpServletResponse.SC_UNAUTHORIZED, msg);
} else {
String errorBody = generateStandardizedErrorBody(errorCode.getCode(), null, null, svne.getMessage());
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
response.setContentType(XML_CONTENT_TYPE);
response.getWriter().print(errorBody);
}
} catch (Throwable th) {