internal JValueTypeException(string key, JValue realValue, string triedType, string exceptionMessageTail) : base("Can not cast value mapped to key \"" + key + "\" to " + triedType + ", value type is " + realValue.GetType() + exceptionMessageTail) { }
internal JValueTypeException(int arrayIndex, JValue realValue, string triedType) : base("Can not cast array element at index " + arrayIndex + " to " + triedType + ", element type is " + realValue.GetType()) { }
internal static DeserializeException forNonMatchingType(JValue jValue, Type type, string toFieldName) { string fullMessage = "Can not deserialize '" + jValue.GetType() + "' to object which type is '" + type + "'" + getToFieldNameString(toFieldName); return(new DeserializeException(fullMessage)); }