FlickrNet.OAuthException.OAuthException C# (CSharp) Méthode

OAuthException() public méthode

Constructor for the OAuthException class.
public OAuthException ( Exception innerException ) : System
innerException System.Exception
Résultat System
        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"];
                
            }
        }

Same methods

OAuthException::OAuthException ( string response, Exception innerException ) : System
OAuthException