Beispiel #1
0
 public void ShowNewNativeError(string message, Exception exception)
 {
     if (exception is JavaScriptException javaScriptException && javaScriptException.JavaScriptStackTrace != null)
     {
         var stackTrace = StackTraceHelper.ConvertChakraStackTrace(javaScriptException.JavaScriptStackTrace);
         ShowNewError(exception.Message, stackTrace, NativeErrorCookie);
     }
Beispiel #2
0
 public void ShowNewNativeError(string message, Exception exception)
 {
     var javaScriptException = exception as JavaScriptException;
     if (javaScriptException != null && javaScriptException.JavaScriptStackTrace != null)
     {
         var stackTrace = StackTraceHelper.ConvertChakraStackTrace(javaScriptException.JavaScriptStackTrace);
         ShowNewError(exception.Message, stackTrace, NativeErrorCookie);
     }
     else
     {
         Tracer.Error(ReactConstants.Tag, "Exception in native call from JavaScript.", exception);
         ShowNewError(message, StackTraceHelper.ConvertNativeStackTrace(exception), NativeErrorCookie);
     }
 }
        public void UpdateJavaScriptError(string message, JArray details, int errorCookie)
        {
            DispatcherHelpers.RunOnDispatcher(() =>
            {
                if (_redBoxDialog == null ||
                    !_redBoxDialogOpen ||
                    errorCookie != _redBoxDialog.ErrorCookie)
                {
                    return;
                }

                _redBoxDialog.Message    = message;
                _redBoxDialog.StackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);
            });
        }
        public void UpdateJavaScriptError(string message, JArray details, int errorCookie)
        {
            DispatcherHelpers.RunOnDispatcher(() =>
            {
                if (_redBoxDialog == null ||
                    !_redBoxDialogOpen ||
                    errorCookie != _redBoxDialog.ErrorCookie)
                {
                    return;
                }

                _redBoxDialog.Message    = message;
                _redBoxDialog.StackTrace = StackTraceHelper.ConvertJavaScriptStackTrace(details);
            });

            RNTracer.Error(ReactConstants.Tag, "[RN_EXCEPTION] DevSupportManager::UpdateJavaScriptError:[" + message + "]");
        }
 public void ShowNewJavaScriptError(string title, JArray details, int errorCookie)
 {
     ShowNewError(title, StackTraceHelper.ConvertJavaScriptStackTrace(details), errorCookie);
 }