79 references to JsonException
Microsoft.AspNetCore.Components.Server (3)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (3)
34
throw new
JsonException
($"Unexpected JSON property '{reader.GetString()}'.");
39
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}.");
45
throw new
JsonException
("__internalId is required.");
Microsoft.AspNetCore.Components.Web (13)
WebEventData\ChangeEventArgsReader.cs (1)
43
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\ClipboardEventArgsReader.cs (1)
25
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\DragEventArgsReader.cs (2)
73
throw new
JsonException
($"Unknown property {property.Name}");
95
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\ErrorEventArgsReader.cs (1)
45
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\FocusEventArgsReader.cs (1)
25
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\KeyboardEventArgsReader.cs (1)
70
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\MouseEventArgsReader.cs (1)
117
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\ProgressEventArgReader.cs (1)
40
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\TouchEventArgsReader.cs (2)
72
throw new
JsonException
($"Unknown property {property.Name}");
126
throw new
JsonException
($"Unknown property {property.Name}");
WebEventData\WebEventDescriptorReader.cs (2)
38
throw new
JsonException
($"Unknown property {property.Name}");
72
throw new
JsonException
($"Unknown property {property.Name}");
Microsoft.AspNetCore.Components.WebAssembly (3)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (3)
34
throw new
JsonException
($"Unexpected JSON property '{reader.GetString()}'.");
39
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}.");
45
throw new
JsonException
("__internalId is required.");
Microsoft.AspNetCore.Components.WebView (3)
src\Components\Shared\src\ElementReferenceJsonConverter.cs (3)
34
throw new
JsonException
($"Unexpected JSON property '{reader.GetString()}'.");
39
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}.");
45
throw new
JsonException
("__internalId is required.");
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (2)
ConverterTests\JsonElementComparer.cs (2)
95
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, "Unknown JsonValueKind {0}", x.ValueKind));
153
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, "Unknown JsonValueKind {0}", obj.ValueKind));
Microsoft.AspNetCore.OpenApi (6)
Schemas\OpenApiJsonSchema.cs (3)
23
throw new
JsonException
("Expected StartObject token to represent beginning of schema.");
31
var propertyName = reader.GetString() ?? throw new
JsonException
("Encountered unexpected missing property name.");
41
throw new
JsonException
("Encountered unexpected EOF token without producing a schema.");
Schemas\OpenApiJsonSchema.Helpers.cs (3)
64
throw new
JsonException
("Expected StartObject or Null");
73
throw new
JsonException
("Expected PropertyName");
156
throw new
JsonException
("Expected PropertyName");
Microsoft.CodeAnalysis.LanguageServer.Protocol (16)
Protocol\Converters\FormattingOptionsConverter.cs (4)
31
throw new
JsonException
(LanguageServerProtocolResources.FormattingOptionsEndedUnexpectedly);
40
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.FormattingOptionsMissingRequiredProperty, propertyName));
74
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.FormattingOptionsEncounteredInvalidToken, reader.TokenType));
108
_ => throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.FormattingOptionsEncounteredInvalidToken, reader.TokenType))
Protocol\Converters\StringEnumConverter.cs (1)
49
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.StringEnumSerializationError, reader.GetString()));
Protocol\Converters\SumConverter.cs (2)
214
throw new
JsonException
(LanguageServerProtocolResources.NoSumTypeMatch);
253
throw new
JsonException
($"No sum type match for {objectType}");
Protocol\Converters\TextDocumentSyncConverter.cs (1)
41
throw new
JsonException
(string.Format(CultureInfo.InvariantCulture, LanguageServerProtocolResources.TextDocumentSyncSerializationError, reader.GetString()));
Protocol\Internal\Converters\ClassifiedTextElementConverter.cs (1)
45
throw new
JsonException
($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ClassifiedTextElement)}");
Protocol\Internal\Converters\ClassifiedTextRunConverter.cs (2)
22
throw new
JsonException
($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ClassifiedTextRun)}");
33
throw new
JsonException
("Expected start object or null tokens");
Protocol\Internal\Converters\ContainerElementConverter.cs (1)
54
throw new
JsonException
($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ContainerElement)}");
Protocol\Internal\Converters\ImageElementConverter.cs (2)
45
throw new
JsonException
($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ImageElement)}");
55
throw new
JsonException
("Expected start object or null tokens");
Protocol\Internal\Converters\ImageIdConverter.cs (2)
23
throw new
JsonException
($"Expected {ObjectContentConverter.TypeProperty} property value {nameof(ImageId)}");
32
throw new
JsonException
("Expected start object or null tokens");
Microsoft.JSInterop (22)
Implementation\JSObjectReferenceJsonWorker.cs (3)
38
throw new
JsonException
($"Unexpected JSON property {reader.GetString()}.");
43
throw new
JsonException
($"Unexpected JSON token {reader.TokenType}");
49
throw new
JsonException
($"Required property {JSObjectIdKey} not found.");
Infrastructure\ByteArrayJsonConverter.cs (8)
33
throw new
JsonException
("JSON serialization is attempting to deserialize an unexpected byte array.");
40
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}, expected 'StartObject'.");
47
throw new
JsonException
($"Unexpected JSON Property {reader.GetString()}.");
51
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}, expected 'Number'.");
55
throw new
JsonException
($"Unexpected number, expected 32-bit integer.");
60
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}, expected 'PropertyName'.");
65
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}, expected 'EndObject'.");
70
throw new
JsonException
($"Byte array {byteArrayRef} not found.");
Infrastructure\DotNetDispatcher.cs (4)
232
throw new
JsonException
("Invalid JSON");
259
throw new
JsonException
($"Unexpected JSON token {reader.TokenType}. Ensure that the call to `{methodIdentifier}' is supplied with exactly '{parameterTypes.Length}' parameters.");
319
throw new
JsonException
("Invalid JSON");
336
throw new
JsonException
("Invalid JSON");
Infrastructure\DotNetObjectReferenceJsonConverter.cs (3)
37
throw new
JsonException
($"Unexpected JSON property {reader.GetString()}.");
42
throw new
JsonException
($"Unexpected JSON Token {reader.TokenType}.");
48
throw new
JsonException
($"Required property {DotNetObjectRefKey} not found.");
Infrastructure\JSStreamReferenceJsonConverter.cs (4)
45
throw new
JsonException
($"Unexpected JSON property {reader.GetString()}.");
50
throw new
JsonException
($"Unexpected JSON token {reader.TokenType}");
56
throw new
JsonException
($"Required property {JSObjectReferenceJsonWorker.JSObjectIdKey} not found.");
61
throw new
JsonException
($"Required property {_jsStreamReferenceLengthKey} not found.");
Microsoft.ML.Tokenizers (1)
Utils\StringSpanOrdinalKey.cs (1)
166
throw new
JsonException
("Invalid JSON.");
System.Text.Json (10)
System\Text\Json\ThrowHelper.Serialization.cs (10)
52
throw new
JsonException
(SR.Format(SR.DeserializeUnableToConvertValue, propertyType)) { AppendPathInformation = true };
70
throw new
JsonException
(SR.Format(SR.PropertyGetterDisallowNull, propertyName, declaringType)) { AppendPathInformation = true };
76
throw new
JsonException
(SR.Format(SR.PropertySetterDisallowNull, propertyName, declaringType)) { AppendPathInformation = true };
82
throw new
JsonException
(SR.Format(SR.ConstructorParameterDisallowNull, parameterName, declaringType)) { AppendPathInformation = true };
130
throw new
JsonException
(SR.Format(SR.SerializationConverterRead, converter)) { AppendPathInformation = true };
136
throw new
JsonException
(SR.Format(SR.SerializationConverterWrite, converter)) { AppendPathInformation = true };
142
throw new
JsonException
(SR.Format(SR.SerializerCycleDetected, maxDepth)) { AppendPathInformation = true };
148
throw new
JsonException
(message) { AppendPathInformation = true };
323
throw new
JsonException
(SR.Format(SR.JsonRequiredPropertiesMissing, parent.Type, listOfMissingPropertiesBuilder.ToString()));
696
throw new
JsonException
(SR.Format(SR.UnmappedJsonProperty, unmappedPropertyName, type));