JsonBindingException
Namespace: SnowBank.Data.Json · class
Implements: InvalidOperationException, ISerializable
Error that occurred while deserializing a JSON value back into a CLR type
Constructors
JsonBindingException
JsonBindingException()
JsonBindingException(string message)
JsonBindingException(string message, Exception innerException)
JsonBindingException(string message, JsonValue value, Exception innerException = null)
JsonBindingException(string message, JsonPath? path, JsonValue value, Type targetType, Exception innerException = null)
JsonBindingException(string message, string reason, JsonPath? path, JsonValue value, Type targetType, Exception innerException)
Properties
Path
JsonPath? Path { get; }
Reason
string Reason { get; }
TargetType
Type TargetType { get; }
Value
JsonValue Value { get; }
Methods
CannotBindArrayWithNullItemToCollectionOfType
static JsonBindingException CannotBindArrayWithNullItemToCollectionOfType(JsonArray array, Type collectionType, Exception innerException = null)
static JsonBindingException CannotBindArrayWithNullItemToCollectionOfType(JsonArray array, int index, Type collectionType, Exception innerException = null)
CannotBindJsonArrayToThisType
static JsonBindingException CannotBindJsonArrayToThisType(JsonArray value, Type type, Exception innerException = null)
CannotBindJsonNumberToThisType
static JsonBindingException CannotBindJsonNumberToThisType(JsonNumber value, Type type, Exception innerException = null)
CannotBindJsonObjectToThisType
static JsonBindingException CannotBindJsonObjectToThisType(JsonValue value, Type type, Exception innerException = null)
CannotBindJsonStringToThisType
static JsonBindingException CannotBindJsonStringToThisType(JsonString value, Type type, Exception innerException = null)
CannotBindJsonValueToArrayOfThisType
static JsonBindingException CannotBindJsonValueToArrayOfThisType(JsonValue value, Type type, Exception innerException = null)
CannotBindJsonValueToThisType
static JsonBindingException CannotBindJsonValueToThisType(JsonValue value, Type type, Exception innerException = null)
CannotBindMalformedOrInvalidJsonValue
static JsonBindingException CannotBindMalformedOrInvalidJsonValue(JsonValue value, Type type, string message, Exception innerException = null)
CannotDeserializeCustomTypeBadType
static JsonBindingException CannotDeserializeCustomTypeBadType(JsonValue value, string customClass)
CannotDeserializeCustomTypeIncompatibleType
static JsonBindingException CannotDeserializeCustomTypeIncompatibleType(JsonValue value, Type type, string customClass)
CannotDeserializeCustomTypeNoBinderForMember
static JsonBindingException CannotDeserializeCustomTypeNoBinderForMember(JsonValue value, CrystalJsonMemberDefinition member, Type type)
CannotDeserializeCustomTypeNoBinderOrGenerator
static JsonBindingException CannotDeserializeCustomTypeNoBinderOrGenerator(JsonValue value, Type type)
CannotDeserializeCustomTypeNoConcreteClassFound
static JsonBindingException CannotDeserializeCustomTypeNoConcreteClassFound(JsonValue value, Type type, string customClass)
CannotDeserializeCustomTypeNoReaderForMember
static JsonBindingException CannotDeserializeCustomTypeNoReaderForMember(JsonValue value, CrystalJsonMemberDefinition member, Type type)
CannotDeserializeCustomTypeNoTypeDefinition
static JsonBindingException CannotDeserializeCustomTypeNoTypeDefinition(JsonValue value, Type type)
CannotDeserializeCustomTypeWithUnknownTypeDiscriminator
static JsonBindingException CannotDeserializeCustomTypeWithUnknownTypeDiscriminator(JsonValue value, Type type, JsonValue discriminator)
CouldNotResolveClassId
static JsonBindingException CouldNotResolveClassId(string classId)
FailedToConstructTypeInstanceErrorOccurred
static JsonBindingException FailedToConstructTypeInstanceErrorOccurred(JsonValue value, Type type, Exception e)
FailedToConstructTypeInstanceReturnedNull
static JsonBindingException FailedToConstructTypeInstanceReturnedNull(JsonValue value, Type type)
GetObjectData
void GetObjectData(SerializationInfo info, StreamingContext context)