Skip to content

Commit 8322d36

Browse files
authored
smaller exception for Utf8JsonReader.GetBytesFromBase64
1 parent 3afa1da commit 8322d36

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

xml/System.Text.Json/Utf8JsonReader.xml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -244,15 +244,7 @@ in more data asynchronously before continuing with a new instance of the <xref:S
244244
<returns>The byte array that represents the current JSON token value.</returns>
245245
<remarks>To be added.</remarks>
246246
<exception cref="T:System.InvalidOperationException">The type of the JSON token is not a <see cref="F:System.Text.Json.JsonTokenType.String" />.</exception>
247-
<exception cref="T:System.FormatException">The JSON string contains data outside of the expected base 64 range.
248-
249-
- or -
250-
251-
The JSON string contains invalid padding characters or more than two padding characters.
252-
253-
- or -
254-
255-
The JSON string is incomplete; that is, the JSON string length is not a multiple of 4.</exception>
247+
<exception cref="T:System.FormatException">The value is not encoded as base 64 text and hence cannot be decoded to bytes.</exception>
256248
</Docs>
257249
</Member>
258250
<Member MemberName="GetComment">

0 commit comments

Comments
 (0)