Files
2026-06-04 11:42:34 +02:00

84 lines
3.4 KiB
C#

using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Net.Sockets
{
/// <summary>The exception that is thrown when a socket error occurs.</summary>
// Token: 0x020001ED RID: 493
[Serializable]
public class SocketException : global::System.ComponentModel.Win32Exception
{
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class with the last operating system error code.</summary>
// Token: 0x060010B1 RID: 4273 RVA: 0x00030800 File Offset: 0x0002EA00
public SocketException()
: base(SocketException.WSAGetLastError_internal())
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class with the specified error code.</summary>
/// <param name="errorCode">The error code that indicates the error that occurred. </param>
// Token: 0x060010B2 RID: 4274 RVA: 0x00030810 File Offset: 0x0002EA10
public SocketException(int error)
: base(error)
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Net.Sockets.SocketException" /> class from the specified instances of the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> and <see cref="T:System.Runtime.Serialization.StreamingContext" /> classes.</summary>
/// <param name="serializationInfo">A <see cref="T:System.Runtime.Serialization.SerializationInfo" /> instance that contains the information that is required to serialize the new <see cref="T:System.Net.Sockets.SocketException" /> instance. </param>
/// <param name="streamingContext">A <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains the source of the serialized stream that is associated with the new <see cref="T:System.Net.Sockets.SocketException" /> instance. </param>
// Token: 0x060010B3 RID: 4275 RVA: 0x0003081C File Offset: 0x0002EA1C
protected SocketException(SerializationInfo info, StreamingContext context)
: base(info, context)
{
}
// Token: 0x060010B4 RID: 4276 RVA: 0x00030828 File Offset: 0x0002EA28
internal SocketException(int error, string message)
: base(error, message)
{
}
// Token: 0x060010B5 RID: 4277
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern int WSAGetLastError_internal();
/// <summary>Gets the error code that is associated with this exception.</summary>
/// <returns>An integer error code that is associated with this exception.</returns>
// Token: 0x1700058E RID: 1422
// (get) Token: 0x060010B6 RID: 4278 RVA: 0x00030834 File Offset: 0x0002EA34
public override int ErrorCode
{
get
{
return base.NativeErrorCode;
}
}
/// <summary>Gets the error code that is associated with this exception.</summary>
/// <returns>An integer error code that is associated with this exception.</returns>
// Token: 0x1700058F RID: 1423
// (get) Token: 0x060010B7 RID: 4279 RVA: 0x0003083C File Offset: 0x0002EA3C
public SocketError SocketErrorCode
{
get
{
return (SocketError)base.NativeErrorCode;
}
}
/// <summary>Gets the error message that is associated with this exception.</summary>
/// <returns>A string that contains the error message. </returns>
// Token: 0x17000590 RID: 1424
// (get) Token: 0x060010B8 RID: 4280 RVA: 0x00030844 File Offset: 0x0002EA44
public override string Message
{
get
{
return base.Message;
}
}
}
}