54 lines
2.5 KiB
C#
54 lines
2.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>The exception that is thrown when there is an attempt to divide an integral or decimal value by zero.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x0200065C RID: 1628
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class DivideByZeroException : ArithmeticException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.DivideByZeroException" /> class.</summary>
|
|
// Token: 0x06003E04 RID: 15876 RVA: 0x000D31F4 File Offset: 0x000D13F4
|
|
public DivideByZeroException()
|
|
: base(Locale.GetText("Division by zero"))
|
|
{
|
|
base.HResult = -2147352558;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.DivideByZeroException" /> class with a specified error message.</summary>
|
|
/// <param name="message">A <see cref="T:System.String" /> that describes the error. </param>
|
|
// Token: 0x06003E05 RID: 15877 RVA: 0x000D3214 File Offset: 0x000D1414
|
|
public DivideByZeroException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2147352558;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.DivideByZeroException" /> class with a specified error message and a reference to the inner exception that is the 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: 0x06003E06 RID: 15878 RVA: 0x000D3228 File Offset: 0x000D1428
|
|
public DivideByZeroException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2147352558;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.DivideByZeroException" /> 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: 0x06003E07 RID: 15879 RVA: 0x000D3240 File Offset: 0x000D1440
|
|
protected DivideByZeroException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x040018CC RID: 6348
|
|
private const int Result = -2147352558;
|
|
}
|
|
}
|