示例#1
0
        public override string ToString()
        {
            string date        = String.Format("--- Date : {0}\r\n", CreationDate.ToLongTimeString());
            string url         = URL == null ? String.Empty : String.Format("URL : {0}\r\n", URL);
            string code        = String.Format("Code : {0}\r\n", StatusCode);
            string description = String.Format("Error documentation description : {0}\r\n", TwitterDescription);

            string exceptionInfos = String.Empty;

            foreach (var twitterExceptionInfo in TwitterExceptionInfos)
            {
                exceptionInfos += String.Format("{0} ({1})\r\n", twitterExceptionInfo.Message, twitterExceptionInfo.Code);
            }

            return(String.Format("{0}{1}{2}{3}{4}{5}", date, url, code, description, exceptionInfos));
        }