Ejemplo n.º 1
0
 public ConfigHeaderCheckFailed(
     ConfigFetcher.UrlWithContext url, string headerName, string expectedValue, Option <string> actual
     ) : base(
         url, $"Expected header '{headerName}' to be '{expectedValue}', but it was {actual}"
         )
 {
 }
Ejemplo n.º 2
0
 protected ConfigFetchError(ConfigFetcher.UrlWithContext url, string message)
 {
     this.message = message;
     this.url     = url;
 }
Ejemplo n.º 3
0
 public ConfigWrongContentType(ConfigFetcher.UrlWithContext url, string expected, string actual)
     : base(url, "Content-Type", expected, actual.some())
 {
 }
Ejemplo n.º 4
0
 public ConfigWWWError(ConfigFetcher.UrlWithContext url, WWWWithHeaders wwwWithHeaders)
     : base(url, $"WWW error: {wwwWithHeaders.www.error}")
 {
     this.wwwWithHeaders = wwwWithHeaders;
 }
Ejemplo n.º 5
0
 public ConfigTimeoutError(ConfigFetcher.UrlWithContext url, Duration timeout)
     : base(url, $"Timed out: {timeout}")
 {
     this.timeout = timeout;
 }