6 instantiations of JsonPatchException
Microsoft.AspNetCore.JsonPatch (6)
Internal\ErrorReporter.cs (1)
13
throw new
JsonPatchException
(error);
Internal\ParsedPath.cs (2)
62
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
75
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
Internal\PathHelpers.cs (1)
19
throw new
JsonPatchException
(Resources.FormatInvalidValueForPath(path), null);
Operations\OperationOfT.cs (2)
63
throw new
JsonPatchException
(new JsonPatchError(objectToApplyTo, this, Resources.TestOperationNotSupported));
66
throw new
JsonPatchException
(
48 references to JsonPatchException
Microsoft.AspNetCore.JsonPatch (2)
JsonPatchDocument.cs (1)
172
catch (
JsonPatchException
jsonPatchException)
JsonPatchDocumentOfT.cs (1)
608
catch (
JsonPatchException
jsonPatchException)
Microsoft.AspNetCore.JsonPatch.Tests (46)
IntegrationTests\AnonymousObjectIntegrationTest.cs (14)
21
var
exception = Assert.Throws<
JsonPatchException
>(() =>
45
var
exception = Assert.Throws<
JsonPatchException
>(() =>
68
var
exception = Assert.Throws<
JsonPatchException
>(() =>
91
var
exception = Assert.Throws<
JsonPatchException
>(() =>
115
var
exception = Assert.Throws<
JsonPatchException
>(() =>
139
var
exception = Assert.Throws<
JsonPatchException
>(() =>
180
var
exception = Assert.Throws<
JsonPatchException
>(() =>
IntegrationTests\DictionaryIntegrationTest.cs (2)
168
var
exception = Assert.Throws<
JsonPatchException
>(() =>
IntegrationTests\DynamicObjectIntegrationTest.cs (6)
60
var
exception = Assert.Throws<
JsonPatchException
>(() =>
160
var
exception = Assert.Throws<
JsonPatchException
>(() =>
225
var
exception = Assert.Throws<
JsonPatchException
>(() =>
IntegrationTests\ExpandoObjectIntegrationTest.cs (10)
147
var
exception = Assert.Throws<
JsonPatchException
>(() =>
168
var
exception = Assert.Throws<
JsonPatchException
>(() =>
272
var
exception = Assert.Throws<
JsonPatchException
>(() =>
312
var
exception = Assert.Throws<
JsonPatchException
>(() =>
354
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)
43
Assert.Throws<
JsonPatchException
>(() => patch.ApplyTo(model));
JsonPatchDocumentTest.cs (4)
19
var
exception = Assert.Throws<
JsonPatchException
>(() =>
37
var
exception = Assert.Throws<
JsonPatchException
>(() =>