[Modify] Replace them
This commit is contained in:
parent
d387a06273
commit
c5956f861b
@ -609,14 +609,14 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!value.IsEnclosedIn ('"')) {
|
if (!value.IsEnclosedIn ('"')) {
|
||||||
var msg = "The value is not enclosed in double quotes.";
|
var msg = "A string not enclosed in double quotes.";
|
||||||
throw new CookieException (msg);
|
throw new ArgumentException (msg, "value");
|
||||||
}
|
}
|
||||||
|
|
||||||
int[] ports;
|
int[] ports;
|
||||||
if (!tryCreatePorts (value, out ports)) {
|
if (!tryCreatePorts (value, out ports)) {
|
||||||
var msg = "The value could not be parsed.";
|
var msg = "It could not be parsed.";
|
||||||
throw new CookieException (msg);
|
throw new ArgumentException (msg, "value");
|
||||||
}
|
}
|
||||||
|
|
||||||
_port = value;
|
_port = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user