12 instantiations of JsonParseException
Microsoft.Analyzers.Local (11)
ApiLifecycle\Json\JsonReader.cs (7)
81_ => throw new JsonParseException( 193_ => throw new JsonParseException( 206throw new JsonParseException( 240_ => throw new JsonParseException( 284throw new JsonParseException( 319throw new JsonParseException( 374throw new JsonParseException(
ApiLifecycle\Json\TextScanner.cs (4)
52throw new JsonParseException(ParsingError.IncompleteMessage, Position); 68throw new JsonParseException(ParsingError.IncompleteMessage, Position); 115throw new JsonParseException( 151throw new JsonParseException(
Microsoft.Analyzers.Local.Tests (1)
Json\JsonParseExceptionTest.cs (1)
16var ex = new JsonParseException();
20 references to JsonParseException
Microsoft.Analyzers.Local (3)
ApiLifecycle\Json\JsonParseException.cs (3)
33/// Initializes a new instance of the <see cref="JsonParseException"/> class. 41/// Initializes a new instance of the <see cref="JsonParseException"/> class with the given error type and position. 51/// Initializes a new instance of the <see cref="JsonParseException"/> class with the given message, error type, and position.
Microsoft.Analyzers.Local.Tests (17)
Json\JsonParseExceptionTest.cs (1)
16var ex = new JsonParseException();
Json\JsonReaderTest.cs (7)
27Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("{ \"x\": \"value\", \"x\": \"value\" }")); 70var ex = Assert.Throws<JsonParseException>(() => JsonReader.Parse("\"\\x\"")); 75ex = Assert.Throws<JsonParseException>(() => JsonReader.Parse("\"\\u11GA\"")); 80ex = Assert.Throws<JsonParseException>(() => JsonReader.Parse("\"\r\"")); 89var ex = Assert.ThrowsAny<JsonParseException>(() => JsonReader.Parse("[ 1 2 ]"));
Json\JsonScannerTest.cs (7)
16JsonParseException ex; 18ex = Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("trUe")); 23ex = Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("tr")); 32var ex = Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("{ /1 }")); 39ex = Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("{ // ignored text }")); 43ex = Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("{ /* ignored text }"));
Json\JsonValueTest.cs (2)
349Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse(string.Empty)); 350Assert.ThrowsAny<JsonParseException>(() => JsonValue.Parse("{"));