public OAuthException(Exception innerException) : base("OAuth Exception", innerException)
{
WebException exception = innerException as WebException;
if (exception == null) return;
HttpWebResponse res = exception.Response as HttpWebResponse;
if (res == null) return;
using(StreamReader sr = new StreamReader(res.GetResponseStream()))
{
string response = sr.ReadToEnd();
FullResponse = response;
OAuthErrorPameters = UtilityMethods.StringToDictionary(response);
mess = "OAuth Exception occurred: " + OAuthErrorPameters["oauth_problem"];
}
}