6 instantiations of JsonPatchException
Microsoft.AspNetCore.JsonPatch.SystemTextJson (6)
Internal\ErrorReporter.cs (1)
13throw new JsonPatchException(error);
Internal\ParsedPath.cs (2)
57throw new JsonPatchException(Resources.FormatInvalidValueForPath(path), null); 70throw new JsonPatchException(Resources.FormatInvalidValueForPath(path), null);
Internal\PathHelpers.cs (1)
20throw new JsonPatchException(Resources.FormatInvalidValueForPath(path), null);
Operations\OperationOfT.cs (2)
62throw new JsonPatchException(new JsonPatchError(objectToApplyTo, this, Resources.TestOperationNotSupported)); 65throw new JsonPatchException(
31 references to JsonPatchException
Microsoft.AspNetCore.JsonPatch.SystemTextJson (2)
JsonPatchDocument.cs (1)
172catch (JsonPatchException jsonPatchException)
JsonPatchDocumentOfT.cs (1)
609catch (JsonPatchException jsonPatchException)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (29)
IntegrationTests\AnonymousObjectIntegrationTest.cs (12)
21var exception = Assert.Throws<JsonPatchException>(() => 44var exception = Assert.Throws<JsonPatchException>(() => 67var exception = Assert.Throws<JsonPatchException>(() => 91var exception = Assert.Throws<JsonPatchException>(() => 115var exception = Assert.Throws<JsonPatchException>(() => 156var exception = Assert.Throws<JsonPatchException>(() =>
IntegrationTests\DictionaryIntegrationTest.cs (2)
168var 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)
41Assert.Throws<JsonPatchException>(() => patch.ApplyTo(model));
JsonPatchDocumentTest.cs (5)
23var exception = Assert.Throws<JsonPatchException>(() => 41var exception = Assert.Throws<JsonPatchException>(() => 231Assert.Throws<JsonPatchException>(() =>