* @param servletResponse response
* @throws IOException occurs when IO has problem
*/
public static void handleError(DAVException error, HttpServletResponse servletResponse) throws IOException {
SVNDebugLog.getDefaultLog().logFine(SVNLogType.NETWORK, error);
DAVResponse response = error.getResponse();
if (response == null) {
DAVException stackErr = error;
while (stackErr != null && stackErr.getTagName() == null) {
stackErr = stackErr.getPreviousException();
}