code: function(promise, xhrResult) {
  		var error = xhrResult;
  		try {
  			error = JSON.parse(xhrResult.responseText);
  		} catch (e) {}
  		if (error && error.DetailedMessage) {
  			error = i18nUtil.formatMessage(messages["Err"], error.DetailedMessage);
  		} else if (error && error.Message) {
  			error = i18nUtil.formatMessage(messages["Err"], error.Message);
  		} else if (typeof xhrResult.url === "string") {
  			if (xhrResult.status === 0) {
  				error = i18nUtil.formatMessage(messages["NoResponseFromServer"], xhrResult.url);
  			} else {
  				error = i18nUtil.formatMessage(messages["ServerError"], xhrResult.url, xhrResult.status, xhrResult.statusText);
  			}
  		}
  		var errNode = document.createElement("span"); //$NON-NLS-0$
  		errNode.textContent = error;
  		promise.reject(errNode);
  	}
docs: /* general functions for working with file system nodes