using System; using System.Runtime.InteropServices; using System.Runtime.Serialization; namespace System { /// The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN). /// 2 // Token: 0x02000693 RID: 1683 [ComVisible(true)] [Serializable] public class NotFiniteNumberException : ArithmeticException { /// Initializes a new instance of the class. // Token: 0x06003FD3 RID: 16339 RVA: 0x000D7890 File Offset: 0x000D5A90 public NotFiniteNumberException() : base(Locale.GetText("The number encountered was not a finite quantity.")) { base.HResult = -2146233048; } /// Initializes a new instance of the class with the invalid number. /// The value of the argument that caused the exception. // Token: 0x06003FD4 RID: 16340 RVA: 0x000D78B0 File Offset: 0x000D5AB0 public NotFiniteNumberException(double offendingNumber) { this.offending_number = offendingNumber; base.HResult = -2146233048; } /// Initializes a new instance of the class with a specified error message. /// The message that describes the error. // Token: 0x06003FD5 RID: 16341 RVA: 0x000D78CC File Offset: 0x000D5ACC public NotFiniteNumberException(string message) : base(message) { base.HResult = -2146233048; } /// Initializes a new instance of the class with a specified error message and the invalid number. /// The message that describes the error. /// The value of the argument that caused the exception. // Token: 0x06003FD6 RID: 16342 RVA: 0x000D78E0 File Offset: 0x000D5AE0 public NotFiniteNumberException(string message, double offendingNumber) : base(message) { this.offending_number = offendingNumber; base.HResult = -2146233048; } /// Initializes a new instance of the class with a specified error message, the invalid number, and a reference to the inner exception that is root cause of this exception. /// The error message that explains the reason for the exception. /// The value of the argument that caused the exception. /// The exception that is the cause of the current exception. If the parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. // Token: 0x06003FD7 RID: 16343 RVA: 0x000D78FC File Offset: 0x000D5AFC public NotFiniteNumberException(string message, double offendingNumber, Exception innerException) : base(message, innerException) { this.offending_number = offendingNumber; base.HResult = -2146233048; } /// Initializes a new instance of the class with serialized data. /// The object that holds the serialized object data. /// The contextual information about the source or destination. // Token: 0x06003FD8 RID: 16344 RVA: 0x000D7918 File Offset: 0x000D5B18 protected NotFiniteNumberException(SerializationInfo info, StreamingContext context) : base(info, context) { this.offending_number = info.GetDouble("OffendingNumber"); } /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is root cause of this exception. /// The error message that explains the reason for the exception. /// The exception that is the cause of the current exception. If the parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. // Token: 0x06003FD9 RID: 16345 RVA: 0x000D7934 File Offset: 0x000D5B34 public NotFiniteNumberException(string message, Exception innerException) : base(message, innerException) { base.HResult = -2146233048; } /// Gets the invalid number that is a positive infinity, a negative infinity, or Not-a-Number (NaN). /// The invalid number. /// 2 // Token: 0x17000BD9 RID: 3033 // (get) Token: 0x06003FDA RID: 16346 RVA: 0x000D794C File Offset: 0x000D5B4C public double OffendingNumber { get { return this.offending_number; } } /// Sets the object with the invalid number and additional exception information. /// The object that holds the serialized object data. /// The contextual information about the source or destination. /// The object is null. /// 2 /// /// /// // Token: 0x06003FDB RID: 16347 RVA: 0x000D7954 File Offset: 0x000D5B54 public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("OffendingNumber", this.offending_number); } // Token: 0x0400194B RID: 6475 private const int Result = -2146233048; // Token: 0x0400194C RID: 6476 private double offending_number; } }