diff --git a/websocket-sharp/Server/WebSocketSessionManager.cs b/websocket-sharp/Server/WebSocketSessionManager.cs
index c9526522..37fb37e4 100644
--- a/websocket-sharp/Server/WebSocketSessionManager.cs
+++ b/websocket-sharp/Server/WebSocketSessionManager.cs
@@ -895,12 +895,6 @@ namespace WebSocketSharp.Server
/// -or-
///
///
- /// The session could not be found.
- ///
- ///
- /// -or-
- ///
- ///
/// is 1010 (mandatory extension).
///
///
@@ -917,6 +911,9 @@ namespace WebSocketSharp.Server
/// could not be UTF-8-encoded.
///
///
+ ///
+ /// The session could not be found.
+ ///
///
///
/// is less than 1000 or greater than 4999.
@@ -933,7 +930,7 @@ namespace WebSocketSharp.Server
IWebSocketSession session;
if (!TryGetSession (id, out session)) {
var msg = "The session could not be found.";
- throw new ArgumentException (msg, "id");
+ throw new InvalidOperationException (msg);
}
session.Context.WebSocket.Close (code, reason);