Files
2026-06-04 11:42:34 +02:00

135 lines
4.5 KiB
C#

using System;
namespace System.Text
{
/// <summary>The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020005EE RID: 1518
[Serializable]
public sealed class EncoderFallbackException : ArgumentException
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderFallbackException" /> class.</summary>
// Token: 0x0600372F RID: 14127 RVA: 0x000BCDCC File Offset: 0x000BAFCC
public EncoderFallbackException()
: this(null)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderFallbackException" /> class. A parameter specifies the error message.</summary>
/// <param name="message">An error message.</param>
// Token: 0x06003730 RID: 14128 RVA: 0x000BCDD8 File Offset: 0x000BAFD8
public EncoderFallbackException(string message)
{
this.index = -1;
base..ctor(message);
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderFallbackException" /> class. Parameters specify the error message and the inner exception that is the cause of this exception.</summary>
/// <param name="message">An error message.</param>
/// <param name="innerException">The exception that caused this exception.</param>
// Token: 0x06003731 RID: 14129 RVA: 0x000BCDE8 File Offset: 0x000BAFE8
public EncoderFallbackException(string message, Exception innerException)
{
this.index = -1;
base..ctor(message, innerException);
}
// Token: 0x06003732 RID: 14130 RVA: 0x000BCDFC File Offset: 0x000BAFFC
internal EncoderFallbackException(char charUnknown, int index)
{
this.index = -1;
base..ctor(null);
this.char_unknown = charUnknown;
this.index = index;
}
// Token: 0x06003733 RID: 14131 RVA: 0x000BCE1C File Offset: 0x000BB01C
internal EncoderFallbackException(char charUnknownHigh, char charUnknownLow, int index)
{
this.index = -1;
base..ctor(null);
this.char_unknown_high = charUnknownHigh;
this.char_unknown_low = charUnknownLow;
this.index = index;
}
/// <summary>Gets the input character that caused the exception.</summary>
/// <returns>The character that cannot be encoded.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000ACC RID: 2764
// (get) Token: 0x06003734 RID: 14132 RVA: 0x000BCE44 File Offset: 0x000BB044
public char CharUnknown
{
get
{
return this.char_unknown;
}
}
/// <summary>Gets the high component character of the surrogate pair that caused the exception.</summary>
/// <returns>The high component character of the surrogate pair that cannot be encoded.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000ACD RID: 2765
// (get) Token: 0x06003735 RID: 14133 RVA: 0x000BCE4C File Offset: 0x000BB04C
public char CharUnknownHigh
{
get
{
return this.char_unknown_high;
}
}
/// <summary>Gets the low component character of the surrogate pair that caused the exception.</summary>
/// <returns>The low component character of the surrogate pair that cannot be encoded.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000ACE RID: 2766
// (get) Token: 0x06003736 RID: 14134 RVA: 0x000BCE54 File Offset: 0x000BB054
public char CharUnknownLow
{
get
{
return this.char_unknown_low;
}
}
/// <summary>Gets the index position in the input buffer of the character that caused the exception.</summary>
/// <returns>The index position in the input buffer of the character that cannot be encoded.</returns>
/// <filterpriority>1</filterpriority>
// Token: 0x17000ACF RID: 2767
// (get) Token: 0x06003737 RID: 14135 RVA: 0x000BCE5C File Offset: 0x000BB05C
[MonoTODO]
public int Index
{
get
{
return this.index;
}
}
/// <summary>Indicates whether the input that caused the exception is a surrogate pair.</summary>
/// <returns>true if the input was a surrogate pair; otherwise, false.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x06003738 RID: 14136 RVA: 0x000BCE64 File Offset: 0x000BB064
[MonoTODO]
public bool IsUnknownSurrogate()
{
throw new NotImplementedException();
}
// Token: 0x0400167B RID: 5755
private const string defaultMessage = "Failed to decode the input byte sequence to Unicode characters.";
// Token: 0x0400167C RID: 5756
private char char_unknown;
// Token: 0x0400167D RID: 5757
private char char_unknown_high;
// Token: 0x0400167E RID: 5758
private char char_unknown_low;
// Token: 0x0400167F RID: 5759
private int index;
}
}