48 lines
3.0 KiB
C#
48 lines
3.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.IO
|
|
{
|
|
/// <summary>The exception that is thrown when a pathname or filename is longer than the system-defined maximum length.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020001C5 RID: 453
|
|
[ComVisible(true)]
|
|
[Serializable]
|
|
public class PathTooLongException : IOException
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.PathTooLongException" /> class with its HRESULT set to COR_E_PATHTOOLONG.</summary>
|
|
// Token: 0x0600175D RID: 5981 RVA: 0x0005A628 File Offset: 0x00058828
|
|
public PathTooLongException()
|
|
: base(Locale.GetText("Pathname is longer than the maximum length"))
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.PathTooLongException" /> class with its message string set to <paramref name="message" /> and its HRESULT set to COR_E_PATHTOOLONG.</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: 0x0600175E RID: 5982 RVA: 0x0005A63C File Offset: 0x0005883C
|
|
public PathTooLongException(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.PathTooLongException" /> 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: 0x0600175F RID: 5983 RVA: 0x0005A648 File Offset: 0x00058848
|
|
protected PathTooLongException(SerializationInfo info, StreamingContext context)
|
|
: base(info, context)
|
|
{
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.IO.PathTooLongException" /> 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="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: 0x06001760 RID: 5984 RVA: 0x0005A654 File Offset: 0x00058854
|
|
public PathTooLongException(string message, Exception innerException)
|
|
: base(message, innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|