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

◆ ReThrowWithPath() [2/3]

static void System.Text.Json.ThrowHelper.ReThrowWithPath ( ref ReadStack state,
JsonReaderException ex )
inlinestatic

Definition at line 904 of file ThrowHelper.cs.

905 {
906 string text = state.JsonPath();
907 string message = ex.Message;
908 int num = message.AsSpan().LastIndexOf(" LineNumber: ");
909 message = ((num < 0) ? (message + " Path: " + text + ".") : $"{message.Substring(0, num)} Path: {text} |{message.Substring(num)}");
910 throw new JsonException(message, text, ex.LineNumber, ex.BytePositionInLine, ex);
911 }

References System.Text.Json.Dictionary, System.state, and System.text.

Referenced by System.Text.Json.JsonSerializer.Read< TValue >(), System.Text.Json.Serialization.JsonConverter< T >.ReadCore(), and System.Text.Json.Serialization.JsonConverter< T >.WriteCore().