private void ShowOrThrowError(string title, JArray details, int exceptionId)
 {
     if (_devSupportManager.IsEnabled)
     {
         _devSupportManager.ShowNewJavaScriptError(title, details, exceptionId);
     }
     else
     {
         var stackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);
         throw new JavaScriptException(title, stackTrace.PrettyPrint());
     }
 }
Beispiel #2
0
        private void ShowOrThrowError(string title, JArray details, int exceptionId)
        {
            if (_devSupportManager.IsEnabled)
            {
                _devSupportManager.ShowNewJavaScriptError(title, details, exceptionId);
            }
            else
            {
                var stackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);

                // JavaScriptAppException type can be used by custom implementations of RnLog.Fatal
                // to detect the Javascript exception scenario for reporting purposes.
                throw new JavaScriptAppException(title, stackTrace);
            }
        }
        public void reportSoftException(string title, JArray details, int exceptionId)
        {
            var stackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);

            Tracer.Write(ReactConstants.Tag, title + Environment.NewLine + stackTrace.PrettyPrint());
        }
Beispiel #4
0
        public void reportSoftException(string title, JArray details, int exceptionId)
        {
            var stackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);

            RnLog.Warn(ReactConstants.RNW, $"Soft Exception: {title}\n{stackTrace.PrettyPrint()}");
        }