using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Runtime.Serialization;
namespace System.Net.Sockets
{
/// The exception that is thrown when a socket error occurs.
// Token: 0x020001ED RID: 493
[Serializable]
public class SocketException : global::System.ComponentModel.Win32Exception
{
/// Initializes a new instance of the class with the last operating system error code.
// Token: 0x060010B1 RID: 4273 RVA: 0x00030800 File Offset: 0x0002EA00
public SocketException()
: base(SocketException.WSAGetLastError_internal())
{
}
/// Initializes a new instance of the class with the specified error code.
/// The error code that indicates the error that occurred.
// Token: 0x060010B2 RID: 4274 RVA: 0x00030810 File Offset: 0x0002EA10
public SocketException(int error)
: base(error)
{
}
/// Initializes a new instance of the class from the specified instances of the and classes.
/// A instance that contains the information that is required to serialize the new instance.
/// A that contains the source of the serialized stream that is associated with the new instance.
// 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();
/// Gets the error code that is associated with this exception.
/// An integer error code that is associated with this exception.
// Token: 0x1700058E RID: 1422
// (get) Token: 0x060010B6 RID: 4278 RVA: 0x00030834 File Offset: 0x0002EA34
public override int ErrorCode
{
get
{
return base.NativeErrorCode;
}
}
/// Gets the error code that is associated with this exception.
/// An integer error code that is associated with this exception.
// Token: 0x1700058F RID: 1423
// (get) Token: 0x060010B7 RID: 4279 RVA: 0x0003083C File Offset: 0x0002EA3C
public SocketError SocketErrorCode
{
get
{
return (SocketError)base.NativeErrorCode;
}
}
/// Gets the error message that is associated with this exception.
/// A string that contains the error message.
// Token: 0x17000590 RID: 1424
// (get) Token: 0x060010B8 RID: 4280 RVA: 0x00030844 File Offset: 0x0002EA44
public override string Message
{
get
{
return base.Message;
}
}
}
}