alexa
menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DiagramJavaScriptErrorEventArgs

    Provides data for JavaScriptError: an exception thrown inside the hosted page's window.SfDiagram wrapper while handling a call from native code (for example, init, addNode, updateLayout).

    Inheritance
    System.Object
    DiagramJavaScriptErrorEventArgs
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public sealed class DiagramJavaScriptErrorEventArgs : EventArgs
    Remarks

    Without this, a JavaScript-side failure (a malformed payload, or an environment problem like ej2.min.js failing to load or evaluate) is otherwise invisible: EvaluateJavaScriptAsync gives no signal that the script it ran threw, so nothing renders and nothing on the native side indicates why. See index.html's wrapping of every window.SfDiagram.* call for how this is captured and reported.

    Properties

    Message

    Gets the JavaScript exception's message.

    Declaration
    public string Message { get; }
    Property Value
    Type
    System.String

    Phase

    Gets the name of the window.SfDiagram function that was running when the error was thrown (for example, "init", "addNode", "updateLayout").

    Declaration
    public string Phase { get; }
    Property Value
    Type
    System.String

    StackTrace

    Gets the JavaScript exception's stack trace, if the browser engine provided one.

    Declaration
    public string StackTrace { get; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved