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