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

118 lines
6.1 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System
{
/// <summary>The exception that is thrown when a floating-point value is positive infinity, negative infinity, or Not-a-Number (NaN).</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x02000693 RID: 1683
[ComVisible(true)]
[Serializable]
public class NotFiniteNumberException : ArithmeticException
{
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class.</summary>
// 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;
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with the invalid number.</summary>
/// <param name="offendingNumber">The value of the argument that caused the exception. </param>
// Token: 0x06003FD4 RID: 16340 RVA: 0x000D78B0 File Offset: 0x000D5AB0
public NotFiniteNumberException(double offendingNumber)
{
this.offending_number = offendingNumber;
base.HResult = -2146233048;
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with a specified error message.</summary>
/// <param name="message">The message that describes the error. </param>
// Token: 0x06003FD5 RID: 16341 RVA: 0x000D78CC File Offset: 0x000D5ACC
public NotFiniteNumberException(string message)
: base(message)
{
base.HResult = -2146233048;
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with a specified error message and the invalid number.</summary>
/// <param name="message">The message that describes the error. </param>
/// <param name="offendingNumber">The value of the argument that caused the exception. </param>
// Token: 0x06003FD6 RID: 16342 RVA: 0x000D78E0 File Offset: 0x000D5AE0
public NotFiniteNumberException(string message, double offendingNumber)
: base(message)
{
this.offending_number = offendingNumber;
base.HResult = -2146233048;
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with a specified error message, the invalid number, and a reference to the inner exception that is root cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
/// <param name="offendingNumber">The value of the argument that caused the exception. </param>
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
// 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;
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with serialized data.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
// Token: 0x06003FD8 RID: 16344 RVA: 0x000D7918 File Offset: 0x000D5B18
protected NotFiniteNumberException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
this.offending_number = info.GetDouble("OffendingNumber");
}
/// <summary>Initializes a new instance of the <see cref="T:System.NotFiniteNumberException" /> class with a specified error message and a reference to the inner exception that is root cause of this exception.</summary>
/// <param name="message">The error message that explains the reason for the exception. </param>
/// <param name="innerException">The exception that is the cause of the current exception. If the <paramref name="innerException" /> parameter is not a null reference (Nothing in Visual Basic), the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06003FD9 RID: 16345 RVA: 0x000D7934 File Offset: 0x000D5B34
public NotFiniteNumberException(string message, Exception innerException)
: base(message, innerException)
{
base.HResult = -2146233048;
}
/// <summary>Gets the invalid number that is a positive infinity, a negative infinity, or Not-a-Number (NaN).</summary>
/// <returns>The invalid number.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x17000BD9 RID: 3033
// (get) Token: 0x06003FDA RID: 16346 RVA: 0x000D794C File Offset: 0x000D5B4C
public double OffendingNumber
{
get
{
return this.offending_number;
}
}
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the invalid number and additional exception information.</summary>
/// <param name="info">The object that holds the serialized object data. </param>
/// <param name="context">The contextual information about the source or destination. </param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> object is null. </exception>
/// <filterpriority>2</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Read="*AllFiles*" PathDiscovery="*AllFiles*" />
/// </PermissionSet>
// 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;
}
}