Class InvalidJsonException
The exception that is thrown when json input is invalid.
Implements
Inherited Members
Namespace: Unity.Serialization.Json
Assembly: Unity.Serialization.dll
Syntax
[Serializable]
public class InvalidJsonException : Exception, ISerializable
Constructors
InvalidJsonException(SerializationInfo, StreamingContext)
Initializes a new instance of the Invalid
Declaration
protected InvalidJsonException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
Serialization |
info | The Serialization |
Streaming |
context | The Streaming |
InvalidJsonException(string)
Initialized a new instance of the Invalid
Declaration
public InvalidJsonException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
InvalidJsonException(string, Exception)
Initializes a new instance of the Invalid
Declaration
public InvalidJsonException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
string | message | The message that describes the error. |
Exception | inner | The inner exception reference. |
Properties
Character
The character the validator stopped at.
Declaration
public int Character { get; set; }
Property Value
Type | Description |
---|---|
int |
Line
The line the validator stopped at.
Declaration
public int Line { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
GetObjectData(SerializationInfo, StreamingContext)
Sets the Serialization
Declaration
[SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
Serialization |
info | The Serialization |
Streaming |
context | The Streaming |
Overrides
Exceptions
Type | Condition |
---|---|
Argument |
The |