[Modify] Remove it

This commit is contained in:
sta 2021-10-24 22:24:53 +09:00
parent 44109be299
commit 6592660672

View File

@ -805,34 +805,6 @@ namespace WebSocketSharp.Server
_websocket.CloseAsync (code, reason);
}
/// <summary>
/// Calls the <see cref="OnError"/> method with the specified message.
/// </summary>
/// <param name="message">
/// A <see cref="string"/> that represents the error message.
/// </param>
/// <param name="exception">
/// An <see cref="Exception"/> instance that represents the cause of
/// the error if present.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="message"/> is <see langword="null"/>.
/// </exception>
/// <exception cref="ArgumentException">
/// <paramref name="message"/> is an empty string.
/// </exception>
[Obsolete ("This method will be removed.")]
protected void Error (string message, Exception exception)
{
if (message == null)
throw new ArgumentNullException ("message");
if (message.Length == 0)
throw new ArgumentException ("An empty string.", "message");
OnError (new ErrorEventArgs (message, exception));
}
/// <summary>
/// Called when the WebSocket connection for a session has been closed.
/// </summary>