Files
Dec2017-Script-Dump/mscorlib/System/IO/DirectoryNotFoundException.cs
T
2026-06-04 11:42:34 +02:00

48 lines
2.9 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
namespace System.IO
{
/// <summary>The exception that is thrown when part of a file or directory cannot be found.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x020001AC RID: 428
[ComVisible(true)]
[Serializable]
public class DirectoryNotFoundException : IOException
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> class with its message string set to a system-supplied message and its HRESULT set to COR_E_DIRECTORYNOTFOUND.</summary>
// Token: 0x06001614 RID: 5652 RVA: 0x00055158 File Offset: 0x00053358
public DirectoryNotFoundException()
: base("Directory not found")
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> class with its message string set to <paramref name="message" /> and its HRESULT set to COR_E_DIRECTORYNOTFOUND.</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: 0x06001615 RID: 5653 RVA: 0x00055168 File Offset: 0x00053368
public DirectoryNotFoundException(string message)
: base(message)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> 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 null, the current exception is raised in a catch block that handles the inner exception. </param>
// Token: 0x06001616 RID: 5654 RVA: 0x00055174 File Offset: 0x00053374
public DirectoryNotFoundException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.DirectoryNotFoundException" /> class with the specified serialization and context 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>
// Token: 0x06001617 RID: 5655 RVA: 0x00055180 File Offset: 0x00053380
protected DirectoryNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
}
}