5 instantiations of JsonPatchError
Microsoft.AspNetCore.JsonPatch (5)
Adapters\ObjectAdapter.cs (2)
271
return new
JsonPatchError
(
279
return new
JsonPatchError
(
JsonPatchDocument.cs (1)
175
errorReporter(new
JsonPatchError
(objectToApplyTo, op, jsonPatchException.Message));
JsonPatchDocumentOfT.cs (1)
611
errorReporter(new
JsonPatchError
(objectToApplyTo, op, jsonPatchException.Message));
Operations\OperationOfT.cs (1)
63
throw new JsonPatchException(new
JsonPatchError
(objectToApplyTo, this, Resources.TestOperationNotSupported));
29 references to JsonPatchError
Microsoft.AspNetCore.JsonPatch (28)
Adapters\ObjectAdapter.cs (20)
19
/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="
JsonPatchError
"/>.</param>
22
Action<
JsonPatchError
> logErrorAction) :
31
/// <param name="logErrorAction">The <see cref="Action"/> for logging <see cref="
JsonPatchError
"/>.</param>
35
Action<
JsonPatchError
> logErrorAction,
54
/// Action for logging <see cref="
JsonPatchError
"/>.
56
public Action<
JsonPatchError
> LogErrorAction { get; }
86
var
error = CreatePathNotFoundError(objectToApplyTo, path, operation, errorMessage);
93
var
error = CreateOperationFailedError(objectToApplyTo, path, operation, errorMessage);
141
var
error = CreatePathNotFoundError(objectToApplyTo, path, operationToReport, errorMessage);
148
var
error = CreateOperationFailedError(objectToApplyTo, path, operationToReport, errorMessage);
165
var
error = CreatePathNotFoundError(objectToApplyTo, operation.path, operation, errorMessage);
172
var
error = CreateOperationFailedError(objectToApplyTo, operation.path, operation, errorMessage);
197
var
error = CreateOperationFailedError(objectToApplyTo, operation.path, operation, Resources.FormatCannotCopyProperty(operation.from));
215
var
error = CreatePathNotFoundError(objectToApplyTo, operation.path, operation, errorMessage);
222
var
error = CreateOperationFailedError(objectToApplyTo, operation.path, operation, errorMessage);
246
var
error = CreatePathNotFoundError(objectToGetValueFrom, fromLocation, operation, errorMessage);
253
var
error = CreateOperationFailedError(objectToGetValueFrom, fromLocation, operation, errorMessage);
261
private Action<
JsonPatchError
> ErrorReporter
269
private static
JsonPatchError
CreateOperationFailedError(object target, string path, Operation operation, string errorMessage)
277
private static
JsonPatchError
CreatePathNotFoundError(object target, string path, Operation operation, string errorMessage)
Exceptions\JsonPatchException.cs (2)
18
public JsonPatchException(
JsonPatchError
jsonPatchError, Exception innerException)
25
public JsonPatchException(
JsonPatchError
jsonPatchError)
Internal\ErrorReporter.cs (1)
11
public static readonly Action<
JsonPatchError
> Default = (error) =>
JsonPatchDocument.cs (2)
150
public void ApplyTo(object objectToApplyTo, Action<
JsonPatchError
> logErrorAction)
161
public void ApplyTo(object objectToApplyTo, IObjectAdapter adapter, Action<
JsonPatchError
> logErrorAction)
JsonPatchDocumentOfT.cs (2)
586
public void ApplyTo(TModel objectToApplyTo, Action<
JsonPatchError
> logErrorAction)
597
public void ApplyTo(TModel objectToApplyTo, IObjectAdapter adapter, Action<
JsonPatchError
> logErrorAction)
JsonPatchError.cs (1)
16
/// Initializes a new instance of <see cref="
JsonPatchError
"/>.
Microsoft.AspNetCore.JsonPatch.Tests (1)
TestErrorLogger.cs (1)
10
public void LogErrorMessage(
JsonPatchError
patchError)