GetErrorMessage() private static method

private static GetErrorMessage ( WebSocketError error ) : string
error WebSocketError
return 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))
 {
 }