Class Sealed
public sealed class JsonErrorEventArgs : EventArgs

Namespace: Moka.Blazor.Json.Models

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

Inheritance

Inherits from: 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

long? JsonErrorEventArgs.BytePosition { get; init; }

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

Exception

Exception? JsonErrorEventArgs.Exception { get; init; }

The exception that caused the error, if available.

LineNumber

long? JsonErrorEventArgs.LineNumber { get; init; }

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

Message

string JsonErrorEventArgs.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?