Class ErrorEventArgs
Inheritance
Inherited Members
Namespace: Mars.Common.Socket
Assembly: Mars.Common.dll
Syntax
public class ErrorEventArgs : EventArgs
Remarks
That event occurs when the WebSocket gets an error.
If you would like to get the error message, you should access the Message property.
And if the error is due to an exception, you can get it by accessing the Exception property.
Properties
| Improve this Doc View SourceException
Declaration
public Exception Exception { get; }
Property Value
Type | Description |
---|---|
System.Exception | An System.Exception instance that represents the cause of the error if it is due to an exception; otherwise, null. |
Remarks
That event occurs when the WebSocket gets an error.
If you would like to get the error message, you should access the Message property.
And if the error is due to an exception, you can get it by accessing the Exception property.
Message
Declaration
public string Message { get; }
Property Value
Type | Description |
---|---|
System.String | A System.String that represents the error message. |
Remarks
That event occurs when the WebSocket gets an error.
If you would like to get the error message, you should access the Message property.
And if the error is due to an exception, you can get it by accessing the Exception property.