Class Sealed
public sealed class JsonErrorEventArgs : System.EventArgs

Namespace: Moka.Blazor.Json.Models

Event arguments raised when an error occurs in the JSON viewer.

Inheritance

Inherits from: System.EventArgs

Properties

NameDescription
BytePosition The byte position in the JSON input where the error occurred, if applicable.
Exception The exception that caused the error, if available.
LineNumber The line number in the JSON input where the error occurred, if applicable.
Message A human-readable description of the error.

BytePosition

public long? BytePosition { get; init; }

The byte position in the JSON input where the error occurred, if applicable.

Exception

public Exception? Exception { get; init; }

The exception that caused the error, if available.

LineNumber

public long? LineNumber { get; init; }

The line number in the JSON input where the error occurred, if applicable.

Message

public required string Message { get; init; }

A human-readable description of the error.

Type Relationships
classDiagram
    style JsonErrorEventArgs fill:#f9f,stroke:#333,stroke-width:2px
    JsonErrorEventArgs --|> EventArgs : inherits
View Source
/// <summary>
///     Event arguments raised when an error occurs in the JSON viewer.
/// </summary>
public sealed class JsonErrorEventArgs : EventArgs
{
    /// <summary>
    ///     A human-readable description of the error.
    /// </summary>
    public required string Message { get; init; }
    /// <summary>
    ///     The exception that caused the error, if available.
    /// </summary>
    public Exception? Exception { get; init; }
    /// <summary>
    ///     The byte position in the JSON input where the error occurred, if applicable.
    /// </summary>
    public long? BytePosition { get; init; }
    /// <summary>
    ///     The line number in the JSON input where the error occurred, if applicable.
    /// </summary>
    public long? LineNumber { get; init; }
}
Was this page helpful?