GetErrorMessage() приватный статический Метод

private static GetErrorMessage ( WebSocketError error ) : string
error WebSocketError
Результат string
Пример #1
0
 /// <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException" /> class.</summary>
 /// <param name="error">The error from the WebSocketError enumeration.</param>
 /// <param name="nativeError">The native error code for the exception.</param>
 /// <param name="innerException">Indicates the previous exception that led to the current exception.</param>
 public WebSocketException(WebSocketError error, int nativeError, Exception innerException)
     : this(error, nativeError, WebSocketException.GetErrorMessage(error), innerException)
 {
 }
Пример #2
0
 /// <summary>Creates an instance of the <see cref="T:System.Net.WebSockets.WebSocketException" /> class.</summary>
 /// <param name="error">The error from the WebSocketError enumeration.</param>
 public WebSocketException(WebSocketError error)
     : this(error, WebSocketException.GetErrorMessage(error))
 {
 }