示例#1
0
 public ActionResult Tweets(TweetsModel model)
 {
     try
     {
         GetTweets G = new GetTweets();
         G.T_F(model.ScreenNameTweets);
         return(Content("Done with Downloading Tweets of the Following Screen Name: " + model.ScreenNameTweets));
     }
     catch (ArgumentOutOfRangeException ex)
     {
         return(Content("Error Handle: Account does not exist in Twitter Network"));
     }
     catch (OverflowException ec)
     {
         return(Content("Error Handle: Account exist in Twitter Network but contains NO Tweets\n"));
     }
     catch (AggregateException cd)
     {
         return(Content("Error Handle: Either the Internet Connection is BAD! or Account and Tweets exist but are Protected in Twitter Network at line 68\n"));
     }
     catch (SqlException se)
     {
         return(Content("Error Handle: Sql Conntection(String) or Command(Qurey) Error"));
     }
     catch (Exception ee)
     {
         return(Content("Error Handle : Some Unknow Exception as occured ::\n" + ee.ToString()));
     }
 }