MCPcopy Create free account
hub / github.com/google/gson / syntaxError

Method syntaxError

src/main/java/com/google/gson/stream/JsonReader.java:1110–1112  ·  view source on GitHub ↗

Throws a new IO exception with the given message and a context snippet with this reader's content.

(String message)

Source from the content-addressed store, hash-verified

1108 * with this reader's content.
1109 */
1110 private IOException syntaxError(String message) throws IOException {
1111 throw new MalformedJsonException(message + " near " + getSnippet());
1112 }
1113
1114 private CharSequence getSnippet() {
1115 StringBuilder snippet = new StringBuilder();

Callers 9

quickPeekMethod · 0.95
nextInArrayMethod · 0.95
nextInObjectMethod · 0.95
objectValueMethod · 0.95
nextNonWhitespaceMethod · 0.95
checkLenientMethod · 0.95
nextStringMethod · 0.95
readEscapeCharacterMethod · 0.95
readLiteralMethod · 0.95

Calls 1

getSnippetMethod · 0.95

Tested by

no test coverage detected