예제 #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}"
         )
 {
 }
예제 #2
0
 protected ConfigFetchError(ConfigFetcher.UrlWithContext url, string message)
 {
     this.message = message;
     this.url     = url;
 }
예제 #3
0
 public ConfigWrongContentType(ConfigFetcher.UrlWithContext url, string expected, string actual)
     : base(url, "Content-Type", expected, actual.some())
 {
 }
예제 #4
0
 public ConfigWWWError(ConfigFetcher.UrlWithContext url, WWWWithHeaders wwwWithHeaders)
     : base(url, $"WWW error: {wwwWithHeaders.www.error}")
 {
     this.wwwWithHeaders = wwwWithHeaders;
 }
예제 #5
0
 public ConfigTimeoutError(ConfigFetcher.UrlWithContext url, Duration timeout)
     : base(url, $"Timed out: {timeout}")
 {
     this.timeout = timeout;
 }