6 instantiations of JsonPatchException
Microsoft.AspNetCore.JsonPatch.SystemTextJson (6)
Internal\ErrorReporter.cs (1)
13
throw new
JsonPatchException
(error);
Internal\ParsedPath.cs (2)
57
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
70
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
Internal\PathHelpers.cs (1)
20
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
Operations\OperationOfT.cs (2)
62
throw new
JsonPatchException
(new JsonPatchError(objectToApplyTo, this, Resources.TestOperationNotSupported));
65
throw new
JsonPatchException
(
31 references to JsonPatchException
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocument.cs (1)
172
catch (
JsonPatchException
jsonPatchException)
JsonPatchDocumentOfT.cs (1)
609
catch (
JsonPatchException
jsonPatchException)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (29)
IntegrationTests\AnonymousObjectIntegrationTest.cs (12)
21
var
exception = Assert.Throws<
JsonPatchException
>(() =>
44
var
exception = Assert.Throws<
JsonPatchException
>(() =>
67
var
exception = Assert.Throws<
JsonPatchException
>(() =>
91
var
exception = Assert.Throws<
JsonPatchException
>(() =>
115
var
exception = Assert.Throws<
JsonPatchException
>(() =>
156
var
exception = Assert.Throws<
JsonPatchException
>(() =>
IntegrationTests\DictionaryIntegrationTest.cs (2)
168
var
exception = Assert.Throws<
JsonPatchException
>(() =>
IntegrationTests\ListIntegrationTest.cs (6)
48
var
exception = Assert.Throws<
JsonPatchException
>(() => { patchDocument.ApplyTo(targetObject); });
160
var
exception = Assert.Throws<
JsonPatchException
>(() =>
248
var
exception = Assert.Throws<
JsonPatchException
>(() => { patchDocument.ApplyTo(targetObject); });
IntegrationTests\SimpleObjectIntegrationTest.cs (2)
164
var
ex = Assert.Throws<
JsonPatchException
>(() => document.ApplyTo(target));
Internal\ParsedPathTests.cs (1)
36
Assert.Throws<
JsonPatchException
>(() =>
JsonPatchDocumentJObjectTest.cs (1)
41
Assert.Throws<
JsonPatchException
>(() => patch.ApplyTo(model));
JsonPatchDocumentTest.cs (5)
23
var
exception = Assert.Throws<
JsonPatchException
>(() =>
41
var
exception = Assert.Throws<
JsonPatchException
>(() =>
231
Assert.Throws<
JsonPatchException
>(() =>