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
messagestringThe 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
messagestringThe message that describes the error.
innerExceptionExceptionThe 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; }