Example #1
0
        public TwitterApiException(HttpStatusCode httpCode, string message, TwitterErrorCode twitterCode)
            : base(message)
        {
            StatusCode = httpCode;
            TwitterErrorCode = twitterCode;

            // analyze error
            ProblemType problemType;
            string description;
            AnalyzeError(out problemType, out description);
            ProblemType = problemType;
            Description = description;

        }
Example #2
0
 public StreamErrorMessage(ApiAccessor accessor, HttpStatusCode hcode, TwitterErrorCode? tcode)
 {
     Accessor = accessor;
     Code = hcode;
     TwitterErrorCode = tcode;
 }