while(err != null && count < 3) { SVNErrorCode errorCode = err.getErrorCode(); if ("".equals(err.getMessageTemplate()) && codes.contains(errorCode)) { err = err.hasChildErrorMessage() ? err.getChildErrorMessage() : null; continue; if ("".equals(err.getMessageTemplate())) { codes.add(errorCode); String template = err.getMessageTemplate(); for (int i = 0; i < objects.length; i++) { if (objects[i] instanceof File) {
while(err != null && count < 3) { SVNErrorCode errorCode = err.getErrorCode(); if ("".equals(err.getMessageTemplate()) && codes.contains(errorCode)) { err = err.hasChildErrorMessage() ? err.getChildErrorMessage() : null; continue; if ("".equals(err.getMessageTemplate())) { codes.add(errorCode); String template = err.getMessageTemplate(); for (int i = 0; i < objects.length; i++) { if (objects[i] instanceof File) {
private SVNErrorMessage readError(String request, String path, SVNErrorMessage context) { String contextMessage = context.getMessageTemplate(); Object[] contextObjects = context.getRelatedObjects(); if (myStatus.getCode() == HttpURLConnection.HTTP_NOT_FOUND) { contextMessage = "''{0}'' path not found"; contextObjects = new Object[] {path}; } SVNErrorMessage error = createDefaultErrorMessage(myConnection.getHost(), path, myStatus, contextMessage, contextObjects); SVNErrorMessage davError = myConnection.readError(this, request, path); if (davError != null) { if (error != null) { davError.setChildErrorMessage(error); } return davError; } return error; }
shortPath = ""; error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), shortPath); } else { throw e;
private SVNErrorMessage readError(String request, String path, SVNErrorMessage context) { String contextMessage = context.getMessageTemplate(); Object[] contextObjects = context.getRelatedObjects(); if (myStatus.getCode() == HttpURLConnection.HTTP_NOT_FOUND) { contextMessage = "''{0}'' path not found"; contextObjects = new Object[] {path}; } SVNErrorMessage error = createDefaultErrorMessage(myConnection.getHost(), path, myStatus, contextMessage, contextObjects); SVNErrorMessage davError = myConnection.readError(this, request, path); if (davError != null) { if (error != null) { davError.setChildErrorMessage(error); } return davError; } return error; }
private SVNErrorMessage readError(String request, String path, SVNErrorMessage context) { String contextMessage = context.getMessageTemplate(); Object[] contextObjects = context.getRelatedObjects(); if (myStatus.getCode() == HttpURLConnection.HTTP_NOT_FOUND) { contextMessage = "''{0}'' path not found"; contextObjects = new Object[] {path}; } SVNErrorMessage error = createDefaultErrorMessage(myConnection.getHost(), path, myStatus, contextMessage, contextObjects); SVNErrorMessage davError = myConnection.readError(this, request, path); if (davError != null) { if (error != null) { davError.setChildErrorMessage(error); } return davError; } return error; }
private SVNErrorMessage readError(String request, String path, SVNErrorMessage context) { String contextMessage = context.getMessageTemplate(); Object[] contextObjects = context.getRelatedObjects(); if (myStatus.getCode() == HttpURLConnection.HTTP_NOT_FOUND) { contextMessage = "''{0}'' path not found"; contextObjects = new Object[] {path}; } SVNErrorMessage error = createDefaultErrorMessage(myConnection.getHost(), myStatus, contextMessage, contextObjects); SVNErrorMessage davError = myConnection.readError(this, request, path); if (davError != null) { if (error != null) { davError.setChildErrorMessage(error); } return davError; } return error; }
public void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException { try { openConnection(); for (Iterator paths = pathToTokens.keySet().iterator(); paths.hasNext();) { String path = (String) paths.next(); String shortPath = path; String id = (String) pathToTokens.get(path); String repositoryPath = getRepositoryPath(path); path = getFullPath(path); path = SVNEncodingUtil.uriEncode(path); SVNErrorMessage error = null; try { myConnection.doUnlock(path, this, id, force); error = null; } catch (SVNException e) { if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), shortPath); } else { throw e; } } if (handler != null) { handler.handleUnlock(repositoryPath, new SVNLock(path, id, null, null, null, null), error); } } } finally { closeConnection(); } }
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), shortPath); } else { throw e;
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), shortPath); } else { throw e;
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), path); } else { throw e;
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), path); } else { throw e;
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), path); } else { throw e;
if (e.getErrorMessage() != null && e.getErrorMessage().getErrorCode() == SVNErrorCode.RA_NOT_LOCKED) { error = e.getErrorMessage(); error = SVNErrorMessage.create(error.getErrorCode(), error.getMessageTemplate(), path); } else { throw e;
context.getMessageTemplate(), context.getRelatedObjects()); myConnection.skipData(this); return;
context.getMessageTemplate(), context.getRelatedObjects()); myConnection.skipData(this); return;
context.getMessageTemplate(), context.getRelatedObjects()); myConnection.skipData(this); return;
myStatus.getCode() == HttpURLConnection.HTTP_PROXY_AUTH) { myErrorMessage = createDefaultErrorMessage(myConnection.getHost(), myStatus, context.getMessageTemplate(), context.getRelatedObjects()); myConnection.skipData(this); return;
if (authHeaderValues == null || authHeaderValues.size() == 0) { err = request.getErrorMessage(); status.setError(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, err.getMessageTemplate(), err.getRelatedObjects())); if ("LOCK".equalsIgnoreCase(method)) { status.getError().setChildErrorMessage(SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE,
if (authHeaderValues == null || authHeaderValues.size() == 0) { err = request.getErrorMessage(); status.setError(SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, err.getMessageTemplate(), err.getRelatedObjects())); if ("LOCK".equalsIgnoreCase(method)) { status.getError().setChildErrorMessage(SVNErrorMessage.create(SVNErrorCode.UNSUPPORTED_FEATURE,