Class WebSocketException
The exception that is thrown when a fatal error occurs in
the WebSocket communication.
Inheritance
System.Object
System.Exception
WebSocketException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Mars.Common.Socket
Assembly: Mars.Common.dll
Syntax
public class WebSocketException : Exception, ISerializable
Properties
| Improve this Doc View SourceCode
Gets the status code indicating the cause of the exception.
Declaration
public CloseStatusCode Code { get; }
Property Value
Type | Description |
---|---|
CloseStatusCode | One of the CloseStatusCode enum values that represents the status code indicating the cause of the exception. |
Implements
System.Runtime.Serialization.ISerializable