384 lines
14 KiB
C#
384 lines
14 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Diagnostics;
|
|
using System.Runtime.CompilerServices;
|
|
using System.Runtime.ExceptionServices;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System
|
|
{
|
|
/// <summary>Represents errors that occur during application execution.</summary>
|
|
// Token: 0x020000EC RID: 236
|
|
[Token(Token = "0x20000EC")]
|
|
[ComVisible(true)]
|
|
[ComDefaultInterface(typeof(_Exception))]
|
|
[ClassInterface(ClassInterfaceType.None)]
|
|
[Serializable]
|
|
[StructLayout(0)]
|
|
public class Exception : ISerializable, _Exception
|
|
{
|
|
// Token: 0x060008D0 RID: 2256 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008D0")]
|
|
[Address(RVA = "0x723410", Offset = "0x722410", VA = "0x180723410")]
|
|
private void Init()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Exception" /> class.</summary>
|
|
// Token: 0x060008D1 RID: 2257 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008D1")]
|
|
[Address(RVA = "0x7239D0", Offset = "0x7229D0", VA = "0x1807239D0")]
|
|
public Exception()
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Exception" /> class with a specified error message.</summary>
|
|
/// <param name="message">The message that describes the error.</param>
|
|
// Token: 0x060008D2 RID: 2258 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008D2")]
|
|
[Address(RVA = "0x723AD0", Offset = "0x722AD0", VA = "0x180723AD0")]
|
|
public Exception(string message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Exception" /> 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, or a null reference (<see langword="Nothing" /> in Visual Basic) if no inner exception is specified.</param>
|
|
// Token: 0x060008D3 RID: 2259 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008D3")]
|
|
[Address(RVA = "0x723A40", Offset = "0x722A40", VA = "0x180723A40")]
|
|
public Exception(string message, Exception innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Exception" /> class with serialized data.</summary>
|
|
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
|
|
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="info" /> is <see langword="null" />.</exception>
|
|
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is <see langword="null" /> or <see cref="P:System.Exception.HResult" /> is zero (0).</exception>
|
|
// Token: 0x060008D4 RID: 2260 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008D4")]
|
|
[Address(RVA = "0x723B50", Offset = "0x722B50", VA = "0x180723B50")]
|
|
protected Exception(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets a message that describes the current exception.</summary>
|
|
/// <returns>The error message that explains the reason for the exception, or an empty string ("").</returns>
|
|
// Token: 0x170000C8 RID: 200
|
|
// (get) Token: 0x060008D5 RID: 2261 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000C8")]
|
|
public virtual string Message
|
|
{
|
|
[Token(Token = "0x60008D5")]
|
|
[Address(RVA = "0x723EC0", Offset = "0x722EC0", VA = "0x180723EC0", Slot = "5")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a collection of key/value pairs that provide additional user-defined information about the exception.</summary>
|
|
/// <returns>An object that implements the <see cref="T:System.Collections.IDictionary" /> interface and contains a collection of user-defined key/value pairs. The default is an empty collection.</returns>
|
|
// Token: 0x170000C9 RID: 201
|
|
// (get) Token: 0x060008D6 RID: 2262 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000C9")]
|
|
public virtual IDictionary Data
|
|
{
|
|
[Token(Token = "0x60008D6")]
|
|
[Address(RVA = "0x723E40", Offset = "0x722E40", VA = "0x180723E40", Slot = "6")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060008D7 RID: 2263 RVA: 0x00007F50 File Offset: 0x00006150
|
|
[Token(Token = "0x60008D7")]
|
|
[Address(RVA = "0x424690", Offset = "0x423690", VA = "0x180424690")]
|
|
private static bool IsImmutableAgileException(Exception e)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
// Token: 0x060008D8 RID: 2264 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008D8")]
|
|
[Address(RVA = "0x722F70", Offset = "0x721F70", VA = "0x180722F70")]
|
|
private string GetClassName()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the <see cref="T:System.Exception" /> instance that caused the current exception.</summary>
|
|
/// <returns>An object that describes the error that caused the current exception. The <see cref="P:System.Exception.InnerException" /> property returns the same value as was passed into the <see cref="M:System.Exception.#ctor(System.String,System.Exception)" /> constructor, or <see langword="null" /> if the inner exception value was not supplied to the constructor. This property is read-only.</returns>
|
|
// Token: 0x170000CA RID: 202
|
|
// (get) Token: 0x060008D9 RID: 2265 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000CA")]
|
|
public Exception InnerException
|
|
{
|
|
[Token(Token = "0x60008D9")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "7")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a string representation of the immediate frames on the call stack.</summary>
|
|
/// <returns>A string that describes the immediate frames of the call stack.</returns>
|
|
// Token: 0x170000CB RID: 203
|
|
// (get) Token: 0x060008DA RID: 2266 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000CB")]
|
|
public virtual string StackTrace
|
|
{
|
|
[Token(Token = "0x60008DA")]
|
|
[Address(RVA = "0x7240E0", Offset = "0x7230E0", VA = "0x1807240E0", Slot = "8")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060008DB RID: 2267 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008DB")]
|
|
[Address(RVA = "0x7233B0", Offset = "0x7223B0", VA = "0x1807233B0")]
|
|
private string GetStackTrace(bool needFileInfo)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008DC RID: 2268 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008DC")]
|
|
[Address(RVA = "0x7235A0", Offset = "0x7225A0", VA = "0x1807235A0")]
|
|
[FriendAccessAllowed]
|
|
internal void SetErrorCode(int hr)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets the name of the application or the object that causes the error.</summary>
|
|
/// <returns>The name of the application or the object that causes the error.</returns>
|
|
/// <exception cref="T:System.ArgumentException">The object must be a runtime <see cref="N:System.Reflection" /> object.</exception>
|
|
// Token: 0x170000CC RID: 204
|
|
// (get) Token: 0x060008DD RID: 2269 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170000CC")]
|
|
public virtual string Source
|
|
{
|
|
[Token(Token = "0x60008DD")]
|
|
[Address(RVA = "0x723FB0", Offset = "0x722FB0", VA = "0x180723FB0", Slot = "9")]
|
|
get
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/// <summary>Creates and returns a string representation of the current exception.</summary>
|
|
/// <returns>A string representation of the current exception.</returns>
|
|
// Token: 0x060008DE RID: 2270 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008DE")]
|
|
[Address(RVA = "0x723960", Offset = "0x722960", VA = "0x180723960", Slot = "3")]
|
|
public override string ToString()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008DF RID: 2271 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008DF")]
|
|
[Address(RVA = "0x7235B0", Offset = "0x7225B0", VA = "0x1807235B0")]
|
|
private string ToString(bool needFileLineInfo, bool needMessage)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.</summary>
|
|
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
|
|
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (<see langword="Nothing" /> in Visual Basic).</exception>
|
|
// Token: 0x060008E0 RID: 2272 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008E0")]
|
|
[Address(RVA = "0x723010", Offset = "0x722010", VA = "0x180723010", Slot = "10")]
|
|
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060008E1 RID: 2273 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008E1")]
|
|
[Address(RVA = "0x723480", Offset = "0x722480", VA = "0x180723480")]
|
|
[OnDeserialized]
|
|
private void OnDeserialized(StreamingContext context)
|
|
{
|
|
}
|
|
|
|
// Token: 0x060008E2 RID: 2274 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008E2")]
|
|
[Address(RVA = "0x4AA5C0", Offset = "0x4A95C0", VA = "0x1804AA5C0")]
|
|
private string StripFileInfo(string stackTrace, bool isRemoteStackTrace)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008E3 RID: 2275 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008E3")]
|
|
[Address(RVA = "0x723510", Offset = "0x722510", VA = "0x180723510")]
|
|
internal void RestoreExceptionDispatchInfo(ExceptionDispatchInfo exceptionDispatchInfo)
|
|
{
|
|
}
|
|
|
|
/// <summary>Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.</summary>
|
|
/// <returns>The HRESULT value.</returns>
|
|
// Token: 0x170000CD RID: 205
|
|
// (get) Token: 0x060008E4 RID: 2276 RVA: 0x00007F68 File Offset: 0x00006168
|
|
// (set) Token: 0x060008E5 RID: 2277 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x170000CD")]
|
|
public int HResult
|
|
{
|
|
[Token(Token = "0x60008E4")]
|
|
[Address(RVA = "0x66A4F0", Offset = "0x6694F0", VA = "0x18066A4F0")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
[Token(Token = "0x60008E5")]
|
|
[Address(RVA = "0x7235A0", Offset = "0x7225A0", VA = "0x1807235A0")]
|
|
protected set
|
|
{
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the runtime type of the current instance.</summary>
|
|
/// <returns>A <see cref="T:System.Type" /> object that represents the exact runtime type of the current instance.</returns>
|
|
// Token: 0x060008E6 RID: 2278 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008E6")]
|
|
[Address(RVA = "0x723400", Offset = "0x722400", VA = "0x180723400", Slot = "11")]
|
|
public new Type GetType()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008E7 RID: 2279 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008E7")]
|
|
[Address(RVA = "0x722FC0", Offset = "0x721FC0", VA = "0x180722FC0")]
|
|
internal static string GetMessageFromNativeResources(Exception.ExceptionMessageKind kind)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008E8 RID: 2280 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x60008E8")]
|
|
[Address(RVA = "0x722E50", Offset = "0x721E50", VA = "0x180722E50")]
|
|
internal Exception FixRemotingException()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x060008E9 RID: 2281 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x60008E9")]
|
|
[Address(RVA = "0x723500", Offset = "0x722500", VA = "0x180723500")]
|
|
internal static void ReportUnhandledException(Exception exception)
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400035C RID: 860
|
|
[Token(Token = "0x400035C")]
|
|
[OptionalField]
|
|
private static object s_EDILock;
|
|
|
|
// Token: 0x0400035D RID: 861
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400035D")]
|
|
private string _className;
|
|
|
|
// Token: 0x0400035E RID: 862
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400035E")]
|
|
internal string _message;
|
|
|
|
// Token: 0x0400035F RID: 863
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400035F")]
|
|
private IDictionary _data;
|
|
|
|
// Token: 0x04000360 RID: 864
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4000360")]
|
|
private Exception _innerException;
|
|
|
|
// Token: 0x04000361 RID: 865
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4000361")]
|
|
private string _helpURL;
|
|
|
|
// Token: 0x04000362 RID: 866
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4000362")]
|
|
private object _stackTrace;
|
|
|
|
// Token: 0x04000363 RID: 867
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4000363")]
|
|
private string _stackTraceString;
|
|
|
|
// Token: 0x04000364 RID: 868
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4000364")]
|
|
private string _remoteStackTraceString;
|
|
|
|
// Token: 0x04000365 RID: 869
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4000365")]
|
|
private int _remoteStackIndex;
|
|
|
|
// Token: 0x04000366 RID: 870
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4000366")]
|
|
private object _dynamicMethods;
|
|
|
|
// Token: 0x04000367 RID: 871
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x4000367")]
|
|
internal int _HResult;
|
|
|
|
// Token: 0x04000368 RID: 872
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
|
[Token(Token = "0x4000368")]
|
|
private string _source;
|
|
|
|
// Token: 0x04000369 RID: 873
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x4000369")]
|
|
[OptionalField]
|
|
private SafeSerializationManager _safeSerializationManager;
|
|
|
|
// Token: 0x0400036A RID: 874
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
|
[Token(Token = "0x400036A")]
|
|
internal StackTrace[] captured_traces;
|
|
|
|
// Token: 0x0400036B RID: 875
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x400036B")]
|
|
private IntPtr[] native_trace_ips;
|
|
|
|
// Token: 0x0400036C RID: 876
|
|
[Token(Token = "0x400036C")]
|
|
private const int _COMPlusExceptionCode = -532462766;
|
|
|
|
// Token: 0x020000ED RID: 237
|
|
[Token(Token = "0x20000ED")]
|
|
internal enum ExceptionMessageKind
|
|
{
|
|
// Token: 0x0400036E RID: 878
|
|
[Token(Token = "0x400036E")]
|
|
ThreadAbort = 1,
|
|
// Token: 0x0400036F RID: 879
|
|
[Token(Token = "0x400036F")]
|
|
ThreadInterrupted,
|
|
// Token: 0x04000370 RID: 880
|
|
[Token(Token = "0x4000370")]
|
|
OutOfMemory
|
|
}
|
|
}
|
|
}
|