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

◆ ThrowNotSupportedException() [2/2]

static void System.Text.Json.ThrowHelper.ThrowNotSupportedException ( ref WriteStack state,
NotSupportedException ex )
inlinestatic

Definition at line 1029 of file ThrowHelper.cs.

1030 {
1031 string text = ex.Message;
1032 Type type = state.Current.DeclaredJsonPropertyInfo?.RuntimePropertyType;
1033 if (type == null)
1034 {
1035 type = state.Current.JsonTypeInfo.Type;
1036 }
1037 if (!text.Contains(type.ToString()))
1038 {
1039 if (text.Length > 0)
1040 {
1041 text += " ";
1042 }
1044 }
1045 text = text + " Path: " + state.PropertyPath() + ".";
1046 throw new NotSupportedException(text, ex);
1047 }
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string SerializationNotSupportedParentType
Definition SR.cs:248
Definition SR.cs:7

References System.Text.Json.Dictionary, System.SR.Format(), System.SR.SerializationNotSupportedParentType, System.state, System.text, and System.type.