Example #1
0
 public ResponseException(Response response)
     : base()
 {
     Response = response;
     try
     {
         Dictionary<string, object> error_object =
             response.GetObject() as Dictionary<string, object>;
         error = (string)error_object["error"];
         reason = (string)error_object["reason"];
     }
     catch
     {
         //NOOP
     }
 }