using System; using System.Globalization; using System.Runtime.Serialization; namespace System.ComponentModel { /// The exception thrown when using invalid arguments that are enumerators. // Token: 0x0200009A RID: 154 [Serializable] public class InvalidEnumArgumentException : ArgumentException { /// Initializes a new instance of the class without a message. // Token: 0x0600051D RID: 1309 RVA: 0x0000DB18 File Offset: 0x0000BD18 public InvalidEnumArgumentException() : this(null) { } /// Initializes a new instance of the class with the specified message. /// The message to display with this exception. // Token: 0x0600051E RID: 1310 RVA: 0x0000DB24 File Offset: 0x0000BD24 public InvalidEnumArgumentException(string message) : base(message) { } /// Initializes a new instance of the class with a message generated from the argument, the invalid value, and an enumeration class. /// The name of the argument that caused the exception. /// The value of the argument that failed. /// A that represents the enumeration class with the valid values. // Token: 0x0600051F RID: 1311 RVA: 0x0000DB30 File Offset: 0x0000BD30 public InvalidEnumArgumentException(string argumentName, int invalidValue, Type enumClass) : base(string.Format(CultureInfo.CurrentCulture, "The value of argument '{0}' ({1}) is invalid for Enum type '{2}'.", new object[] { argumentName, invalidValue, enumClass.Name }), argumentName) { } /// Initializes a new instance of the class with the specified detailed description and the specified exception. /// A detailed description of the error. /// A reference to the inner exception that is the cause of this exception. // Token: 0x06000520 RID: 1312 RVA: 0x0000DB70 File Offset: 0x0000BD70 public InvalidEnumArgumentException(string message, Exception innerException) : base(message, innerException) { } /// Initializes a new instance of the class using the specified serialization data and context. /// The to be used for deserialization. /// The destination to be used for deserialization. // Token: 0x06000521 RID: 1313 RVA: 0x0000DB7C File Offset: 0x0000BD7C protected InvalidEnumArgumentException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }