Represents the rate limits for a resource family.
Inheritance: CoreBase
Beispiel #1
0
 private TwitterException(HttpStatusCode status, Error[] errors, RateLimit rateLimit, string json, WebException innerException)
     : base(errors[0].Message, innerException)
 {
     this.Status    = status;
     this.Errors    = errors;
     this.RateLimit = rateLimit;
     this.Json      = json;
 }
Beispiel #2
0
 private TwitterException(HttpStatusCode status, Error[] errors, RateLimit rateLimit, string json, WebException innerException)
     : base(errors[0].Message, innerException)
 {
     this.Status = status;
     this.Errors = errors;
     this.RateLimit = rateLimit;
     this.Json = json;
 }
Beispiel #3
0
 private TwitterException(HttpStatusCode status, Error[] errors, RateLimit rateLimit, string json, Exception innerException)
     : base(errors[0].Message, innerException)
 {
     this.Status    = status;
     this.Errors    = errors;
     this.RateLimit = rateLimit;
     this.Json      = json;
     this.HelpLink  = "https://dev.twitter.com/overview/api/response-codes";
 }
Beispiel #4
0
 private static TwitterException Create(string json, HttpStatusCode statusCode, WebException ex, RateLimit rateLimit)
 {
     return(new TwitterException(statusCode, ParseErrors(json), rateLimit, json, ex));
 }
Beispiel #5
0
 private static TwitterException Create(string json, HttpStatusCode statusCode, WebException ex, RateLimit rateLimit)
 {
     return new TwitterException(statusCode, ParseErrors(json), rateLimit, json, ex);
 }