public bool OnError(HttpRequestException error) { HttpResponse response = error.HttpResponse; if (Logger.IsLoggingEnabled()) { Logger.Log("BasicRequestHandler.onError got"); Logger.Log(error.Message); } if (response != null) { int status = response.Status; if (status > 0) { return(true); // Perhaps a 404, 501, or something that will be fixed later } } return(false); }
/// <summary> /// Raised in case of errors /// </summary> /// <param name="error">The error object <see cref="HttpRequestException" /></param> /// <returns>true or false</returns> public bool OnError(HttpRequestException error) { HttpResponse response = error.HttpResponse; if (Logger.IsLoggingEnabled()) { Logger.Log("BasicRequestHandler.onError got"); Logger.Log(error.Message); } if (response != null) { int status = response.Status; if (status > 0) return true; // Perhaps a 404, 501, or something that will be fixed later } return false; }