This commit is contained in:
niko
2026-06-04 11:42:34 +02:00
parent f39ba70a9f
commit e720b98cd1
7488 changed files with 2493818 additions and 0 deletions
+179
View File
@@ -0,0 +1,179 @@
using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Text;
namespace System.IO
{
/// <summary>The exception that is thrown when a managed assembly is found but cannot be loaded.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020001B6 RID: 438
[ComVisible(true)]
[Serializable]
public class FileLoadException : IOException
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> class, setting the <see cref="P:System.Exception.Message" /> property of the new instance to a system-supplied message that describes the error, such as "Could not load the specified file." This message takes into account the current system culture.</summary>
// Token: 0x06001683 RID: 5763 RVA: 0x00056920 File Offset: 0x00054B20
public FileLoadException()
: base(Locale.GetText("I/O Error"))
{
base.HResult = -2147024894;
this.msg = Locale.GetText("I/O Error");
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> class with the specified error message.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. </param>
// Token: 0x06001684 RID: 5764 RVA: 0x00056958 File Offset: 0x00054B58
public FileLoadException(string message)
: base(message)
{
base.HResult = -2147024894;
this.msg = message;
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> class with a specified error message and the name of the file that could not be loaded.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. </param>
/// <param name="fileName">A <see cref="T:System.String" /> containing the name of the file that was not loaded. </param>
// Token: 0x06001685 RID: 5765 RVA: 0x00056974 File Offset: 0x00054B74
public FileLoadException(string message, string fileName)
: base(message)
{
base.HResult = -2147024894;
this.msg = message;
this.fileName = fileName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. </param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06001686 RID: 5766 RVA: 0x000569A4 File Offset: 0x00054BA4
public FileLoadException(string message, Exception inner)
: base(message, inner)
{
base.HResult = -2147024894;
this.msg = message;
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> class with a specified error message, the name of the file that could not be loaded, and a reference to the inner exception that is the cause of this exception.</summary>
/// <param name="message">A <see cref="T:System.String" /> that describes the error. The content of <paramref name="message" /> is intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture. </param>
/// <param name="fileName">A <see cref="T:System.String" /> containing the name of the file that was not loaded. </param>
/// <param name="inner">The exception that is the cause of the current exception. If the <paramref name="inner" /> parameter is not null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06001687 RID: 5767 RVA: 0x000569C0 File Offset: 0x00054BC0
public FileLoadException(string message, string fileName, Exception inner)
: base(message, inner)
{
base.HResult = -2147024894;
this.msg = message;
this.fileName = fileName;
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileLoadException" /> 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>
// Token: 0x06001688 RID: 5768 RVA: 0x000569E4 File Offset: 0x00054BE4
protected FileLoadException(SerializationInfo info, StreamingContext context)
{
this.fileName = info.GetString("FileLoad_FileName");
this.fusionLog = info.GetString("FileLoad_FusionLog");
}
/// <summary>Gets the error message and the name of the file that caused this exception.</summary>
/// <returns>A string containing the error message and the name of the file that caused this exception.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170003F2 RID: 1010
// (get) Token: 0x06001689 RID: 5769 RVA: 0x00056A1C File Offset: 0x00054C1C
public override string Message
{
get
{
return this.msg;
}
}
/// <summary>Gets the name of the file that causes this exception.</summary>
/// <returns>A <see cref="T:System.String" /> containing the name of the file with the invalid image, or a null reference if no file name was passed to the constructor for the current instance.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x170003F3 RID: 1011
// (get) Token: 0x0600168A RID: 5770 RVA: 0x00056A24 File Offset: 0x00054C24
public string FileName
{
get
{
return this.fileName;
}
}
/// <summary>Gets the log file that describes why an assembly load failed.</summary>
/// <returns>A string containing errors reported by the assembly cache.</returns>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission. </exception>
/// <filterpriority>2</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlEvidence, ControlPolicy" />
/// </PermissionSet>
// Token: 0x170003F4 RID: 1012
// (get) Token: 0x0600168B RID: 5771 RVA: 0x00056A2C File Offset: 0x00054C2C
public string FusionLog
{
get
{
return this.fusionLog;
}
}
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with the file name and additional exception information.</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.Security.SecurityException">The caller does not have the required permission. </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*" />
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlEvidence, ControlPolicy" />
/// </PermissionSet>
// Token: 0x0600168C RID: 5772 RVA: 0x00056A34 File Offset: 0x00054C34
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("FileLoad_FileName", this.fileName);
info.AddValue("FileLoad_FusionLog", this.fusionLog);
}
/// <summary>Returns the fully qualified name of the current exception, and possibly the error message, the name of the inner exception, and the stack trace.</summary>
/// <returns>A string containing the fully qualified name of this exception, and possibly the error message, the name of the inner exception, and the stack trace, depending on which <see cref="T:System.IO.FileLoadException" /> constructor is used.</returns>
/// <filterpriority>2</filterpriority>
/// <PermissionSet>
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="ControlEvidence, ControlPolicy" />
/// </PermissionSet>
// Token: 0x0600168D RID: 5773 RVA: 0x00056A6C File Offset: 0x00054C6C
public override string ToString()
{
StringBuilder stringBuilder = new StringBuilder(this.GetType().FullName);
stringBuilder.AppendFormat(": {0}", this.msg);
if (this.fileName != null)
{
stringBuilder.AppendFormat(" : {0}", this.fileName);
}
if (this.InnerException != null)
{
stringBuilder.AppendFormat(" ----> {0}", this.InnerException);
}
if (this.StackTrace != null)
{
stringBuilder.Append(Environment.NewLine);
stringBuilder.Append(this.StackTrace);
}
return stringBuilder.ToString();
}
// Token: 0x0400066F RID: 1647
private const int Result = -2147024894;
// Token: 0x04000670 RID: 1648
private string msg;
// Token: 0x04000671 RID: 1649
private string fileName;
// Token: 0x04000672 RID: 1650
private string fusionLog;
}
}