From c5956f861b06ebb8de9c0ac4fb96467e486cf399 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 14 Mar 2019 21:18:25 +0900 Subject: [PATCH] [Modify] Replace them --- websocket-sharp/Net/Cookie.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/websocket-sharp/Net/Cookie.cs b/websocket-sharp/Net/Cookie.cs index 0613eb09..3c72d1f4 100644 --- a/websocket-sharp/Net/Cookie.cs +++ b/websocket-sharp/Net/Cookie.cs @@ -609,14 +609,14 @@ namespace WebSocketSharp.Net } if (!value.IsEnclosedIn ('"')) { - var msg = "The value is not enclosed in double quotes."; - throw new CookieException (msg); + var msg = "A string not enclosed in double quotes."; + throw new ArgumentException (msg, "value"); } int[] ports; if (!tryCreatePorts (value, out ports)) { - var msg = "The value could not be parsed."; - throw new CookieException (msg); + var msg = "It could not be parsed."; + throw new ArgumentException (msg, "value"); } _port = value;