Leanplum exception.
Inheritance: Exception
Esempio n. 1
0
 public static void MaybeThrow(LeanplumException exception)
 {
     if (Constants.isDevelopmentModeEnabled)
     {
         throw exception;
     }
     else
     {
         LeanplumNative.CompatibilityLayer.LogError(exception.ToString());
     }
 }
        internal void InvokeAllCallbacksWithError(LeanplumException leanplumException)
        {
            if (requestHandlers.Count == 0)
            {
                return;
            }

            List <string> keys = new List <string>();

            foreach (var pair in requestHandlers)
            {
                string reqId   = pair.Key;
                var    handler = pair.Value;

                handler?.OnError(leanplumException);
                keys.Add(reqId);
            }
            RemoveHandlers(keys);
        }