예제 #1
0
 private static void CheckForErrors(ErrorableResponse res)
 {
     if (res == null || (res.type != null && res.type.Length > 0))
     {
         throw new Exception("Got an invalid response." + ((res.type != null && res.type.Length > 0) ? " Error: " + res.type : ""));
     }
 }
 private static void CheckForErrors(ErrorableResponse res)
 {
     if (res == null || (res.type != null && res.type.Length > 0))
         throw new Exception("Got an invalid response." + ((res.type != null && res.type.Length > 0) ? " Error: " + res.type : ""));
 }