Author: joshua
Date: 2005-03-20 17:33:36 -0500 (Sun, 20 Mar 2005)
New Revision: 42037
Modified:
trunk/mcs/class/System/System/ChangeLog
trunk/mcs/class/System/System/Uri.cs
Log:
2005-03-20 Joshua Tauberer <[EMAIL PROTECTED]>
* Uri.cs: Some pedantic changes to the text of a few exceptions.
Modified: trunk/mcs/class/System/System/ChangeLog
===================================================================
--- trunk/mcs/class/System/System/ChangeLog 2005-03-20 13:46:14 UTC (rev
42036)
+++ trunk/mcs/class/System/System/ChangeLog 2005-03-20 22:33:36 UTC (rev
42037)
@@ -1,3 +1,7 @@
+2005-03-20 Joshua Tauberer <[EMAIL PROTECTED]>
+
+ * Uri.cs: Some pedantic changes to the text of a few exceptions.
+
2005-03-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* Uri.cs: when unescaping in stages, handle the case when the next
Modified: trunk/mcs/class/System/System/Uri.cs
===================================================================
--- trunk/mcs/class/System/System/Uri.cs 2005-03-20 13:46:14 UTC (rev
42036)
+++ trunk/mcs/class/System/System/Uri.cs 2005-03-20 22:33:36 UTC (rev
42037)
@@ -947,12 +947,12 @@
else if (uriString.StartsWith ("\\\\"))
ParseAsWindowsUNC (uriString);
else
- throw new UriFormatException ("URI
scheme was not recognized, nor input string is not recognized as an absolute
file path.");
+ throw new UriFormatException ("URI
scheme was not recognized, and input string was not recognized as an absolute
file path.");
return;
}
else if (pos == 1) {
if (!Char.IsLetter (uriString [0]))
- throw new UriFormatException ("URI
scheme must start with alphabet character.");
+ throw new UriFormatException ("URI
scheme must start with a letter.");
// This means 'a:' == windows full path.
ParseAsWindowsAbsoluteFilePath (uriString);
return;
@@ -962,7 +962,7 @@
scheme = uriString.Substring (0, pos).ToLower
(CultureInfo.InvariantCulture);
// Check scheme name characters as specified in RFC2396.
if (!Char.IsLetter (scheme [0]))
- throw new UriFormatException ("URI
scheme must start with alphabet character.");
+ throw new UriFormatException ("URI
scheme must start with a letter.");
for (int i = 1; i < scheme.Length; i++) {
if (!Char.IsLetterOrDigit (scheme, i)) {
switch (scheme [i]) {
@@ -1044,7 +1044,7 @@
port = (int) UInt32.Parse
(portStr, CultureInfo.InvariantCulture);
uriString = uriString.Substring
(0, pos);
} catch (Exception) {
- throw new UriFormatException
("Invalid URI: invalid port number");
+ throw new UriFormatException
("Invalid URI: Invalid port number");
}
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches