54 lines
2.4 KiB
C#
54 lines
2.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Defines the base class for predefined exceptions in the <see cref="N:System" /> namespace.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020006AC RID: 1708
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class SystemException : Exception
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.SystemException" /> class.</summary>
|
|
// Token: 0x060040A1 RID: 16545 RVA: 0x000DC0FC File Offset: 0x000DA2FC
|
|
public SystemException()
|
|
: base(Locale.GetText("A system exception has occurred."))
|
|
{
|
|
base.HResult = -2146233087;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.SystemException" /> class with a specified error message.</summary>
|
|
/// <param name="message">The message that describes the error. </param>
|
|
// Token: 0x060040A2 RID: 16546 RVA: 0x000DC11C File Offset: 0x000DA31C
|
|
public SystemException(string message)
|
|
: base(message)
|
|
{
|
|
base.HResult = -2146233087;
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.SystemException" /> 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: 0x060040A3 RID: 16547 RVA: 0x000DC130 File Offset: 0x000DA330
|
|
protected SystemException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.SystemException" /> 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: 0x060040A4 RID: 16548 RVA: 0x000DC13C File Offset: 0x000DA33C
|
|
public SystemException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
base.HResult = -2146233087;
|
|
}
|
|
|
|
// Token: 0x040019BA RID: 6586
|
|
private const int Result = -2146233087;
|
|
}
|
|
}
|