Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetJsonReaderException()

static JsonException System.Text.Json.ThrowHelper.GetJsonReaderException ( ref Utf8JsonReader json,
ExceptionResource resource,
byte nextByte,
ReadOnlySpan< byte > bytes )
inlinestatic

Definition at line 256 of file ThrowHelper.cs.

257 {
258 string resourceString = GetResourceString(ref json, resource, nextByte, JsonHelpers.Utf8GetString(bytes));
259 long lineNumber = json.CurrentState._lineNumber;
260 long bytePositionInLine = json.CurrentState._bytePositionInLine;
261 resourceString += $" LineNumber: {lineNumber} | BytePositionInLine: {bytePositionInLine}.";
262 return new JsonReaderException(resourceString, lineNumber, bytePositionInLine);
263 }
static string GetResourceString(ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, string characters)

References System.bytes, System.Text.Json.Dictionary, System.Text.Json.ThrowHelper.GetResourceString(), and System.Text.Json.JsonHelpers.Utf8GetString().

Referenced by System.Text.Json.Utf8JsonReader.GetInvalidLiteralMultiSegment(), and System.Text.Json.ThrowHelper.ThrowJsonReaderException().