/** * Returns a string representation of this error message object * formatting (if needed) the error description with the provided related objects. * If no error description pattern has been provided, the return * value includes a string representation of the error code (see {@link SVNErrorCode}). * * @return a string representing this object. */ public String toString() { StringBuffer line = new StringBuffer(); if (getType() == TYPE_WARNING && getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { line.append("Warning: "); } else if (getType() == TYPE_WARNING) { line.append("svn: warning: "); } else { line.append("svn: "); } if ("".equals(myMessage)) { line.append(myErrorCode.getDescription()); } else { line.append(myObjects.length > 0 ? MessageFormat.format(myMessage, myObjects) : myMessage); } return line.toString(); }
/** * Returns a string representation of this error message object * formatting (if needed) the error description with the provided related objects. * If no error description pattern has been provided, the return * value includes a string representation of the error code (see {@link SVNErrorCode}). * * @return a string representing this object. */ public String toString() { StringBuffer line = new StringBuffer(); if (getType() == TYPE_WARNING && getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { line.append("Warning: "); } else if (getType() == TYPE_WARNING) { line.append("svn: warning: "); } else { line.append("svn: "); } if ("".equals(myMessage)) { line.append(myErrorCode.getDescription()); } else { line.append(myObjects.length > 0 ? MessageFormat.format(myMessage, myObjects) : myMessage); } return line.toString(); }
/** * Returns a string representation of this error message object * formatting (if needed) the error description with the provided related objects. * If no error description pattern has been provided, the return * value includes a string representation of the error code (see {@link SVNErrorCode}). * * @return a string representing this object. */ public String toString() { StringBuffer line = new StringBuffer(); if (getType() == TYPE_WARNING && getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { line.append("Warning: "); } else if (getType() == TYPE_WARNING) { line.append("svn: warning: "); } else { line.append("svn: "); } if ("".equals(myMessage)) { line.append(myErrorCode.toString()); } else { line.append(myObjects.length > 0 ? MessageFormat.format(myMessage, myObjects) : myMessage); } return line.toString(); }
if (err.getType() == SVNErrorMessage.TYPE_WARNING) { String msg = getCommandLineClientName() +": warning: " + (err.isErrorCodeShouldShown() ? "W" + errorCode.getCode() + ": " : "") + message;
if (err.getType() == SVNErrorMessage.TYPE_WARNING) { String msg = getCommandLineClientName() +": warning: " + (err.isErrorCodeShouldShown() ? "W" + errorCode.getCode() + ": " : "") + message;
SVNErrorMessage err2 = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "{0} request failed on ''{1}''", new Object[] {method, path}, err.getType(), err.getCause()); SVNErrorManager.error(err, err2, SVNLogType.NETWORK); return null;
SVNErrorMessage err2 = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "{0} request failed on ''{1}''", new Object[] {method, path}, err.getType(), err.getCause()); SVNErrorManager.error(err, err2, SVNLogType.NETWORK); return null;
SVNErrorMessage err2 = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "{0} request failed on ''{1}''", new Object[] {method, path}, err.getType(), err.getCause()); SVNErrorManager.error(err, err2, SVNLogType.NETWORK); return null;