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);
     }
 }