public ConfigServerCheckFailed( ConfigFetcher.Urls urls, string headerName, string expectedValue, Option <string> actual ) : base( urls, $"Expected header '{headerName}' to be '{expectedValue}', but it was {actual}" ) { }
public void TestToString() { var urls = new ConfigFetcher.Urls(new Uri("http://fetch.url"), new Uri("http://report.url")); var str = urls.ToString(); str.shouldInclude(urls.reportUrl.ToString()); str.shouldNotInclude(urls.fetchUrl.ToString()); }
public ConfigWrongContentType(ConfigFetcher.Urls urls, string expectedContentType, string actualContentType) : base( urls, $"Expected 'Content-Type' to be '{expectedContentType}', but it was '{actualContentType}'" ) { this.expectedContentType = expectedContentType; this.actualContentType = actualContentType; }
protected ConfigFetchError(ConfigFetcher.Urls urls, string message) { this.message = message; this.urls = urls; }
public ConfigWWWError(ConfigFetcher.Urls urls, WWWWithHeaders wwwWithHeaders) : base(urls, $"WWW error: {wwwWithHeaders.www.error}") { this.wwwWithHeaders = wwwWithHeaders; }
public ConfigTimeoutError(ConfigFetcher.Urls urls, Duration timeout) : base(urls, $"Timed out: {timeout}") { this.timeout = timeout; }