Skip to content

Commit 75d982b

Browse files
committed
Remove references to EncoderFallbackException and DecoderFallbackException.
1 parent abeb2c8 commit 75d982b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Renci.SshNet/Common/ASCIIEncoding.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public ASCIIEncoding()
4646
/// </returns>
4747
/// <exception cref="ArgumentNullException"><paramref name="chars"/> is <c>null</c>.</exception>
4848
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="chars"/>.</exception>
49-
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
5049
public override int GetByteCount(char[] chars, int index, int count)
5150
{
5251
return count;
@@ -66,7 +65,6 @@ public override int GetByteCount(char[] chars, int index, int count)
6665
/// <exception cref="ArgumentNullException"><paramref name="chars"/> is <c>null</c>.-or- <paramref name="bytes"/> is <c>null</c>.</exception>
6766
/// <exception cref="ArgumentOutOfRangeException"><paramref name="charIndex"/> or <paramref name="charCount"/> or <paramref name="byteIndex"/> is less than zero.-or- <paramref name="charIndex"/> and <paramref name="charCount"/> do not denote a valid range in <paramref name="chars"/>.-or- <paramref name="byteIndex"/> is not a valid index in <paramref name="bytes"/>.</exception>
6867
/// <exception cref="ArgumentException"><paramref name="bytes"/> does not have enough capacity from <paramref name="byteIndex"/> to the end of the array to accommodate the resulting bytes.</exception>
69-
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
7068
public override int GetBytes(char[] chars, int charIndex, int charCount, byte[] bytes, int byteIndex)
7169
{
7270
for (var i = 0; i < charCount && i < chars.Length; i++)
@@ -92,7 +90,6 @@ public override int GetBytes(char[] chars, int charIndex, int charCount, byte[]
9290
/// </returns>
9391
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is <c>null</c>.</exception>
9492
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> or <paramref name="count"/> is less than zero.-or- <paramref name="index"/> and <paramref name="count"/> do not denote a valid range in <paramref name="bytes"/>.</exception>
95-
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
9693
public override int GetCharCount(byte[] bytes, int index, int count)
9794
{
9895
return count;
@@ -112,7 +109,6 @@ public override int GetCharCount(byte[] bytes, int index, int count)
112109
/// <exception cref="ArgumentNullException"><paramref name="bytes"/> is <c>null</c>.-or- <paramref name="chars"/> is <c>null</c>.</exception>
113110
/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteIndex"/> or <paramref name="byteCount"/> or <paramref name="charIndex"/> is less than zero.-or- <paramref name="byteIndex"/> and <paramref name="byteCount"/> do not denote a valid range in <paramref name="bytes"/>.-or- <paramref name="charIndex"/> is not a valid index in <paramref name="chars"/>.</exception>
114111
/// <exception cref="ArgumentException"><paramref name="chars"/> does not have enough capacity from <paramref name="charIndex"/> to the end of the array to accommodate the resulting characters.</exception>
115-
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
116112
public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex)
117113
{
118114
for (var i = 0; i < byteCount; i++)
@@ -142,7 +138,6 @@ public override int GetChars(byte[] bytes, int byteIndex, int byteCount, char[]
142138
/// The maximum number of bytes produced by encoding the specified number of characters.
143139
/// </returns>
144140
/// <exception cref="ArgumentOutOfRangeException"><paramref name="charCount"/> is less than zero.</exception>
145-
/// <exception cref="EncoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.EncoderFallback"/> is set to <see cref="EncoderExceptionFallback"/>.</exception>
146141
public override int GetMaxByteCount(int charCount)
147142
{
148143
if (charCount < 0)
@@ -159,7 +154,6 @@ public override int GetMaxByteCount(int charCount)
159154
/// The maximum number of characters produced by decoding the specified number of bytes.
160155
/// </returns>
161156
/// <exception cref="ArgumentOutOfRangeException"><paramref name="byteCount"/> is less than zero.</exception>
162-
/// <exception cref="DecoderFallbackException">A fallback occurred (see Understanding Encodings for complete explanation)-and-<see cref="P:System.Text.Encoding.DecoderFallback"/> is set to <see cref="DecoderExceptionFallback"/>.</exception>
163157
public override int GetMaxCharCount(int byteCount)
164158
{
165159
if (byteCount < 0)

0 commit comments

Comments
 (0)