err1.setChildErrorMessage(err2);
SVNDebugLog.getDefaultLog().log(logType, err1.getMessage(), logLevel);
if (err1.getErrorCode() == SVNErrorCode.CANCELLED || err2.getErrorCode() == SVNErrorCode.CANCELLED) {
throw new SVNCancelException(err1);
} else if (err1.getErrorCode().isAuthentication() || err2.getErrorCode().isAuthentication()) {
throw new SVNAuthenticationException(err1, cause);
}
throw new SVNException(err1, cause);
}