Newtonsoft.Json.JsonSerializationException.Create C# (CSharp) Method

Create() static private method

static private Create ( IJsonLineInfo lineInfo, string path, string message, Exception ex ) : JsonSerializationException
lineInfo IJsonLineInfo
path string
message string
ex System.Exception
return JsonSerializationException
        internal static JsonSerializationException Create(IJsonLineInfo lineInfo, string path, string message, Exception ex)
        {
            message = JsonPosition.FormatMessage(lineInfo, path, message);

            return new JsonSerializationException(message, ex);
        }
    }

Same methods

JsonSerializationException::Create ( JsonReader reader, string message ) : JsonSerializationException
JsonSerializationException::Create ( JsonReader reader, string message, Exception ex ) : JsonSerializationException

Usage Example

Example #1
0
 internal static JsonSerializationException Create(JsonReader reader, string message, Exception ex)
 {
     return(JsonSerializationException.Create(reader as IJsonLineInfo, reader.Path, message, ex));
 }
All Usage Examples Of Newtonsoft.Json.JsonSerializationException::Create
JsonSerializationException