コード例 #1
0
 internal InstagramHttpException(SocialHttpResponse response, InstagramMetaData meta) : base(meta.ErrorMessage)
 {
     Response     = response;
     RateLimiting = InstagramRateLimiting.GetFromResponse(response);
     Meta         = meta;
 }
コード例 #2
0
 internal InstagramHttpException(SocialHttpResponse response) : base("Invalid response received from the Instagram API (Status: " + ((int)response.StatusCode) + ")")
 {
     Response     = response;
     RateLimiting = InstagramRateLimiting.GetFromResponse(response);
 }
コード例 #3
0
 internal InstagramHttpException(IHttpResponse response, InstagramHttpError error) : base(error.Message)
 {
     Response     = response;
     RateLimiting = InstagramRateLimiting.GetFromResponse(response);
     Error        = error;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="response"/>.
 /// </summary>
 /// <param name="response">The underlying raw response the instance should be based on.</param>
 protected InstagramResponse(IHttpResponse response) : base(response)
 {
     RateLimiting = InstagramRateLimiting.GetFromResponse(response);
 }
コード例 #5
0
 internal InstagramHttpException(IHttpResponse response) : base($"Invalid response received from the Instagram Graph API (Status: {(int) response.StatusCode}.")
 {
     Response     = response;
     RateLimiting = InstagramRateLimiting.GetFromResponse(response);
 }