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());
     }
 }
Example #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);
            }
        }