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