12 references to ThrowArgumentException
System.Text.Json (12)
System\Text\Json\ThrowHelper.cs (10)
143ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length)); 148ThrowArgumentException(SR.Format(SR.ValueTooLarge, value.Length)); 157ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length)); 162ThrowArgumentException(SR.Format(SR.ValueTooLarge, value.Length)); 171ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length)); 176ThrowArgumentException(SR.Format(SR.ValueTooLarge, value.Length)); 185ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length)); 190ThrowArgumentException(SR.Format(SR.ValueTooLarge, value.Length)); 205ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length)); 258ThrowArgumentException(SR.Format(SR.PropertyNameTooLarge, propertyName.Length));
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.Raw.cs (2)
148ThrowHelper.ThrowArgumentException(SR.ExpectedJsonTokens); 237ThrowHelper.ThrowArgumentException(SR.ExpectedJsonTokens);