58 lines
3.3 KiB
C#
58 lines
3.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.IO
|
|
{
|
|
/// <summary>The exception that is thrown when an I/O error occurs.</summary>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x020001BE RID: 446
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class IOException : SystemException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IOException" /> class with its message string set to the empty string (""), its HRESULT set to COR_E_IO, and its inner exception set to a null reference.</summary>
|
|
// Token: 0x060016F0 RID: 5872 RVA: 0x000586D0 File Offset: 0x000568D0
|
|
public IOException()
|
|
: base("I/O Error")
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IOException" /> class with its message string set to <paramref name="message" />, its HRESULT set to COR_E_IO, and its inner exception set to null.</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: 0x060016F1 RID: 5873 RVA: 0x000586E0 File Offset: 0x000568E0
|
|
public IOException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IOException" /> 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: 0x060016F2 RID: 5874 RVA: 0x000586EC File Offset: 0x000568EC
|
|
public IOException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IOException" /> class with the specified serialization and context information.</summary>
|
|
/// <param name="info">The data for serializing or deserializing the object. </param>
|
|
/// <param name="context">The source and destination for the object. </param>
|
|
// Token: 0x060016F3 RID: 5875 RVA: 0x000586F8 File Offset: 0x000568F8
|
|
protected IOException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.IOException" /> class with its message string set to <paramref name="message" /> and its HRESULT user-defined.</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="hresult">An integer identifying the error that has occurred. </param>
|
|
// Token: 0x060016F4 RID: 5876 RVA: 0x00058704 File Offset: 0x00056904
|
|
public IOException(string message, int hresult)
|
|
: base(message)
|
|
{
|
|
base.HResult = hresult;
|
|
}
|
|
}
|
|
}
|