127 lines
5.7 KiB
C#
127 lines
5.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.ComponentModel
|
|
{
|
|
/// <summary>Throws an exception for a Win32 error code.</summary>
|
|
// Token: 0x020001A9 RID: 425
|
|
[Token(Token = "0x20001A9")]
|
|
[Serializable]
|
|
public class Win32Exception : ExternalException, ISerializable
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the last Win32 error that occurred.</summary>
|
|
// Token: 0x06000BAD RID: 2989 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BAD")]
|
|
[Address(RVA = "0x2F4DC50", Offset = "0x2F4CC50", VA = "0x182F4DC50")]
|
|
public Win32Exception()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the specified error.</summary>
|
|
/// <param name="error">The Win32 error code associated with this exception.</param>
|
|
// Token: 0x06000BAE RID: 2990 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BAE")]
|
|
[Address(RVA = "0x2F4DBB0", Offset = "0x2F4CBB0", VA = "0x182F4DBB0")]
|
|
public Win32Exception(int error)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the specified error and the specified detailed description.</summary>
|
|
/// <param name="error">The Win32 error code associated with this exception.</param>
|
|
/// <param name="message">A detailed description of the error.</param>
|
|
// Token: 0x06000BAF RID: 2991 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BAF")]
|
|
[Address(RVA = "0x2F4DC20", Offset = "0x2F4CC20", VA = "0x182F4DC20")]
|
|
public Win32Exception(int error, string message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the specified detailed description.</summary>
|
|
/// <param name="message">A detailed description of the error.</param>
|
|
// Token: 0x06000BB0 RID: 2992 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BB0")]
|
|
[Address(RVA = "0x2F4DB30", Offset = "0x2F4CB30", VA = "0x182F4DB30")]
|
|
public Win32Exception(string message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the specified detailed description and the specified exception.</summary>
|
|
/// <param name="message">A detailed description of the error.</param>
|
|
/// <param name="innerException">A reference to the inner exception that is the cause of this exception.</param>
|
|
// Token: 0x06000BB1 RID: 2993 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BB1")]
|
|
[Address(RVA = "0x2F4DD40", Offset = "0x2F4CD40", VA = "0x182F4DD40")]
|
|
public Win32Exception(string message, Exception innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.ComponentModel.Win32Exception" /> class with the specified context and the serialization information.</summary>
|
|
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> associated with this exception.</param>
|
|
/// <param name="context">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that represents the context of this exception.</param>
|
|
// Token: 0x06000BB2 RID: 2994 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BB2")]
|
|
[Address(RVA = "0x2F4DCB0", Offset = "0x2F4CCB0", VA = "0x182F4DCB0")]
|
|
protected Win32Exception(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets the Win32 error code associated with this exception.</summary>
|
|
/// <returns>The Win32 error code associated with this exception.</returns>
|
|
// Token: 0x17000224 RID: 548
|
|
// (get) Token: 0x06000BB3 RID: 2995 RVA: 0x00006618 File Offset: 0x00004818
|
|
[Token(Token = "0x17000224")]
|
|
public int NativeErrorCode
|
|
{
|
|
[Token(Token = "0x6000BB3")]
|
|
[Address(RVA = "0x4F3F50", Offset = "0x4F2F50", VA = "0x1804F3F50")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the file name and line number at which this <see cref="T:System.ComponentModel.Win32Exception" /> occurred.</summary>
|
|
/// <param name="info">A <see cref="T:System.Runtime.Serialization.SerializationInfo" />.</param>
|
|
/// <param name="context">The contextual information about the source or destination.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
// Token: 0x06000BB4 RID: 2996 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BB4")]
|
|
[Address(RVA = "0x2F4C650", Offset = "0x2F4B650", VA = "0x182F4C650", Slot = "10")]
|
|
public override void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06000BB5 RID: 2997 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6000BB5")]
|
|
[Address(RVA = "0x2F4C540", Offset = "0x2F4B540", VA = "0x182F4C540")]
|
|
internal static string GetErrorMessage(int error)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06000BB6 RID: 2998 RVA: 0x00002053 File Offset: 0x00000253
|
|
[Token(Token = "0x6000BB6")]
|
|
[Address(RVA = "0x2F4C700", Offset = "0x2F4B700", VA = "0x182F4C700")]
|
|
private static void InitializeErrorMessages()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400061E RID: 1566
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x88")]
|
|
[Token(Token = "0x400061E")]
|
|
private readonly int nativeErrorCode;
|
|
|
|
// Token: 0x0400061F RID: 1567
|
|
[Token(Token = "0x400061F")]
|
|
private static bool s_ErrorMessagesInitialized;
|
|
|
|
// Token: 0x04000620 RID: 1568
|
|
[Token(Token = "0x4000620")]
|
|
private static Dictionary<int, string> s_ErrorMessage;
|
|
}
|
|
}
|