alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    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
    object
    EventArgs
    DiagramJavaScriptErrorEventArgs
    Inherited Members
    EventArgs.Empty
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    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
    string

    StackTrace

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

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