private IEnumerable <YahooAddress> ProcessWebResponse(WebResponse response) { XPathDocument xmlDoc = LoadXmlResponse(response); XPathNavigator nav = xmlDoc.CreateNavigator(); YahooError error = EvaluateError(Convert.ToInt32(nav.Evaluate("number(/ResultSet/Error)"))); if (error != YahooError.NoError) { throw new YahooGeocodingException(error); } return(ParseAddresses(nav.Select("/ResultSet/Result")).ToArray()); }
public YahooGeocodingException(Exception innerException) : base(defaultMessage, innerException) { this.ErrorCode = YahooError.UnknownError; }
public YahooGeoCodingException(Exception innerException) : base(defaultMessage, innerException) { this.ErrorCode = YahooError.UnknownError; }
public YahooGeocodingException(YahooError errorCode) : base(defaultMessage) { this.ErrorCode = errorCode; }
public YahooGeoCodingException(YahooError errorCode) : base(defaultMessage) { this.ErrorCode = errorCode; }