using System; namespace System.Text { /// The exception that is thrown when an encoder fallback operation fails. This class cannot be inherited. /// 2 // Token: 0x020005EE RID: 1518 [Serializable] public sealed class EncoderFallbackException : ArgumentException { /// Initializes a new instance of the class. // Token: 0x0600372F RID: 14127 RVA: 0x000BCDCC File Offset: 0x000BAFCC public EncoderFallbackException() : this(null) { } /// Initializes a new instance of the class. A parameter specifies the error message. /// An error message. // Token: 0x06003730 RID: 14128 RVA: 0x000BCDD8 File Offset: 0x000BAFD8 public EncoderFallbackException(string message) { this.index = -1; base..ctor(message); } /// Initializes a new instance of the class. Parameters specify the error message and the inner exception that is the cause of this exception. /// An error message. /// The exception that caused this exception. // 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; } /// Gets the input character that caused the exception. /// The character that cannot be encoded. /// 2 // Token: 0x17000ACC RID: 2764 // (get) Token: 0x06003734 RID: 14132 RVA: 0x000BCE44 File Offset: 0x000BB044 public char CharUnknown { get { return this.char_unknown; } } /// Gets the high component character of the surrogate pair that caused the exception. /// The high component character of the surrogate pair that cannot be encoded. /// 2 // Token: 0x17000ACD RID: 2765 // (get) Token: 0x06003735 RID: 14133 RVA: 0x000BCE4C File Offset: 0x000BB04C public char CharUnknownHigh { get { return this.char_unknown_high; } } /// Gets the low component character of the surrogate pair that caused the exception. /// The low component character of the surrogate pair that cannot be encoded. /// 2 // Token: 0x17000ACE RID: 2766 // (get) Token: 0x06003736 RID: 14134 RVA: 0x000BCE54 File Offset: 0x000BB054 public char CharUnknownLow { get { return this.char_unknown_low; } } /// Gets the index position in the input buffer of the character that caused the exception. /// The index position in the input buffer of the character that cannot be encoded. /// 1 // Token: 0x17000ACF RID: 2767 // (get) Token: 0x06003737 RID: 14135 RVA: 0x000BCE5C File Offset: 0x000BB05C [MonoTODO] public int Index { get { return this.index; } } /// Indicates whether the input that caused the exception is a surrogate pair. /// true if the input was a surrogate pair; otherwise, false. /// 2 // 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; } }