/// <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)
{
}