using System; namespace System.Text { /// The exception that is thrown when a decoder fallback operation fails. This class cannot be inherited. /// 2 // Token: 0x020005E6 RID: 1510 [Serializable] public sealed class DecoderFallbackException : ArgumentException { /// Initializes a new instance of the class. // Token: 0x060036F7 RID: 14071 RVA: 0x000BC7FC File Offset: 0x000BA9FC public DecoderFallbackException() : this(null) { } /// Initializes a new instance of the class. A parameter specifies the error message. /// An error message. // Token: 0x060036F8 RID: 14072 RVA: 0x000BC808 File Offset: 0x000BAA08 public DecoderFallbackException(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: 0x060036F9 RID: 14073 RVA: 0x000BC818 File Offset: 0x000BAA18 public DecoderFallbackException(string message, Exception innerException) { this.index = -1; base..ctor(message, innerException); } /// Initializes a new instance of the class. Parameters specify the error message, the array of bytes being decoded, and the index of the byte that cannot be decoded. /// An error message. /// The input byte array. /// The index position in of the byte that cannot be decoded. // Token: 0x060036FA RID: 14074 RVA: 0x000BC82C File Offset: 0x000BAA2C public DecoderFallbackException(string message, byte[] bytesUnknown, int index) { this.index = -1; base..ctor(message); this.bytes_unknown = bytesUnknown; this.index = index; } /// Gets the input byte sequence that caused the exception. /// The input byte array that cannot be decoded. /// 2 // Token: 0x17000ABE RID: 2750 // (get) Token: 0x060036FB RID: 14075 RVA: 0x000BC84C File Offset: 0x000BAA4C [MonoTODO] public byte[] BytesUnknown { get { return this.bytes_unknown; } } /// Gets the index position in the input byte sequence of the byte that caused the exception. /// The index position in the input byte array of the byte that cannot be decoded. The index position is zero-based. /// 1 // Token: 0x17000ABF RID: 2751 // (get) Token: 0x060036FC RID: 14076 RVA: 0x000BC854 File Offset: 0x000BAA54 [MonoTODO] public int Index { get { return this.index; } } // Token: 0x0400166F RID: 5743 private const string defaultMessage = "Failed to decode the input byte sequence to Unicode characters."; // Token: 0x04001670 RID: 5744 private byte[] bytes_unknown; // Token: 0x04001671 RID: 5745 private int index; } }