52 references to Resources
Microsoft.AspNetCore.JsonPatch.SystemTextJson (52)
Adapters\ObjectAdapter.cs (3)
193
var error = CreateOperationFailedError(objectToApplyTo, operation.path, operation,
Resources
.FormatCannotCopyProperty(operation.from));
270
errorMessage ??
Resources
.FormatCannotPerformOperation(operation.op, path));
278
errorMessage ??
Resources
.FormatTargetLocationNotFound(operation.op, path));
Converters\JsonConverterForJsonPatchDocumentOfT.cs (3)
22
throw new ArgumentException(
Resources
.FormatParameterMustMatchType(nameof(typeToConvert), nameof(JsonPatchDocument<T>)), nameof(typeToConvert));
27
throw new JsonException(
Resources
.InvalidJsonPatchDocument);
49
throw new JsonException(
Resources
.InvalidJsonPatchDocument, ex);
Converters\JsonPatchDocumentConverter.cs (3)
21
throw new ArgumentException(
Resources
.FormatParameterMustMatchType(nameof(typeToConvert), nameof(JsonPatchDocument)), nameof(typeToConvert));
26
throw new JsonException(
Resources
.InvalidJsonPatchDocument);
49
throw new JsonException(
Resources
.InvalidJsonPatchDocument, ex);
Internal\DictionaryAdapterOfTU.cs (8)
58
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
84
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
110
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
143
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
155
errorMessage =
Resources
.FormatValueForTargetSegmentCannotBeNullOrEmpty(segment);
161
errorMessage =
Resources
.FormatValueNotEqualToTestValue(currentValue, value, segment);
213
errorMessage =
Resources
.FormatInvalidPathSegment(key);
230
errorMessage =
Resources
.FormatInvalidValueForProperty(value);
Internal\JsonObjectAdapter.cs (6)
40
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
59
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
79
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
100
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
106
errorMessage =
Resources
.FormatValueForTargetSegmentCannotBeNullOrEmpty(segment);
112
errorMessage =
Resources
.FormatValueNotEqualToTestValue(currentValue, value, segment);
Internal\ListAdapter.cs (6)
137
errorMessage =
Resources
.FormatValueAtListPositionNotEqualToTestValue(currentValue, value, positionInfo.Index);
158
errorMessage =
Resources
.FormatInvalidIndexValue(segment);
167
errorMessage =
Resources
.FormatIndexOutOfBounds(segment);
187
errorMessage =
Resources
.FormatInvalidValueForProperty(originalValue);
247
errorMessage =
Resources
.FormatIndexOutOfBounds(segment);
253
errorMessage =
Resources
.FormatInvalidIndexValue(segment);
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);
Internal\PocoAdapter.cs (15)
24
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
30
errorMessage =
Resources
.FormatCannotUpdateProperty(segment);
36
errorMessage =
Resources
.FormatInvalidValueForProperty(value);
55
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
62
errorMessage =
Resources
.FormatCannotReadProperty(segment);
80
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
86
errorMessage =
Resources
.FormatCannotUpdateProperty(segment);
114
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
120
errorMessage =
Resources
.FormatCannotUpdateProperty(segment);
126
errorMessage =
Resources
.FormatInvalidValueForProperty(value);
145
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
151
errorMessage =
Resources
.FormatCannotReadProperty(segment);
157
errorMessage =
Resources
.FormatInvalidValueForProperty(value);
164
errorMessage =
Resources
.FormatValueNotEqualToTestValue(currentValue, value, segment);
194
errorMessage =
Resources
.FormatTargetLocationAtPathSegmentNotFound(segment);
JsonPatchDocumentOfT.cs (1)
721
throw new InvalidOperationException(
Resources
.FormatExpressionTypeNotSupported(expr));
Operations\Operation.cs (1)
62
throw new NotSupportedException(
Resources
.TestOperationNotSupported);
Operations\OperationOfT.cs (2)
62
throw new JsonPatchException(new JsonPatchError(objectToApplyTo, this,
Resources
.TestOperationNotSupported));
66
Resources
.FormatInvalidJsonPatchOperation(op), innerException: null);
src\f3018ccc2ba0686c\Microsoft.AspNetCore.JsonPatch.SystemTextJson.Resources.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
Resources
)));