Table of Contents

Class JsonSerializationException

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Represents errors that occur during JSON serialization.

public class JsonSerializationException : Exception, ISerializable
Inheritance
JsonSerializationException
Implements
Derived
Inherited Members

Constructors

JsonSerializationException()

Initializes a new instance of the JsonSerializationException class.

public JsonSerializationException()

JsonSerializationException(string?)

Initializes a new instance of the JsonSerializationException class with a specified error message.

public JsonSerializationException(string? message)

Parameters

message string

The message that describes the error.

JsonSerializationException(string?, Exception?)

Initializes a new instance of the JsonSerializationException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public JsonSerializationException(string? message, Exception? innerException)

Parameters

message string

The message that describes the error.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

Code

Gets the specific cause for a failure, if specified.

public JsonSerializationException.ErrorCode Code { get; init; }

Property Value

JsonSerializationException.ErrorCode