Table of Contents

Class JsonWriterException

Namespace
Newtonsoft.Json
Assembly
Newtonsoft.Json.dll

The exception thrown when an error occurs while reading Json text.

public class JsonWriterException : Exception, ISerializable
Inheritance
JsonWriterException
Implements
Inherited Members

Constructors

JsonWriterException()

Initializes a new instance of the JsonWriterException class.

public JsonWriterException()

JsonWriterException(SerializationInfo, StreamingContext)

Initializes a new instance of the JsonWriterException class.

public JsonWriterException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Exceptions

ArgumentNullException

The info parameter is null.

SerializationException

The class name is null or HResult is zero (0).

JsonWriterException(string)

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

public JsonWriterException(string message)

Parameters

message string

The error message that explains the reason for the exception.

JsonWriterException(string, Exception)

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

public JsonWriterException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.